home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 October / My Disc.iso / patch / Unreal Tournament 2004 / ut2004-winpatch3323.exe / UT2004-Patch / System / Onslaught.u / ONSPowerCore_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-09-07  |  34.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 56 ae 04 63 6c 61 73 73 |........|V..class|
|00000010| 20 4f 4e 53 50 6f 77 65 | 72 43 6f 72 65 20 65 78 | ONSPowe|rCore ex|
|00000020| 74 65 6e 64 73 20 44 65 | 73 74 72 6f 79 61 62 6c |tends De|stroyabl|
|00000030| 65 4f 62 6a 65 63 74 69 | 76 65 0d 0a 09 68 69 64 |eObjecti|ve...hid|
|00000040| 65 63 61 74 65 67 6f 72 | 69 65 73 28 44 65 73 74 |ecategor|ies(Dest|
|00000050| 72 6f 79 61 62 6c 65 4f | 62 6a 65 63 74 69 76 65 |royableO|bjective|
|00000060| 29 0d 0a 09 61 62 73 74 | 72 61 63 74 3b 0d 0a 0d |)...abst|ract;...|
|00000070| 0a 23 65 78 65 63 20 4f | 42 4a 20 4c 4f 41 44 20 |.#exec O|BJ LOAD |
|00000080| 46 49 4c 45 3d 22 2e 2e | 5c 53 74 61 74 69 63 4d |FILE="..|\StaticM|
|00000090| 65 73 68 65 73 5c 56 4d | 53 74 72 75 63 74 75 72 |eshes\VM|Structur|
|000000a0| 65 73 2e 75 73 78 22 0d | 0a 23 65 78 65 63 20 4f |es.usx".|.#exec O|
|000000b0| 42 4a 20 4c 4f 41 44 20 | 46 49 4c 45 3d 22 2e 2e |BJ LOAD |FILE="..|
|000000c0| 5c 54 65 78 74 75 72 65 | 73 5c 4f 4e 53 73 74 72 |\Texture|s\ONSstr|
|000000d0| 75 63 74 75 72 65 54 65 | 78 74 75 72 65 73 2e 75 |uctureTe|xtures.u|
|000000e0| 74 78 22 0d 0a 0d 0a 0d | 0a 76 61 72 28 45 76 65 |tx".....|.var(Eve|
|000000f0| 6e 74 73 29 20 6e 61 6d | 65 20 20 20 20 20 20 20 |nts) nam|e |
|00000100| 20 20 20 20 20 52 65 64 | 41 63 74 69 76 61 74 69 | Red|Activati|
|00000110| 6f 6e 45 76 65 6e 74 4e | 61 6d 65 3b 0d 0a 76 61 |onEventN|ame;..va|
|00000120| 72 28 45 76 65 6e 74 73 | 29 20 6e 61 6d 65 20 20 |r(Events|) name |
|00000130| 20 20 20 20 20 20 20 20 | 20 20 42 6c 75 65 41 63 | | BlueAc|
|00000140| 74 69 76 61 74 69 6f 6e | 45 76 65 6e 74 4e 61 6d |tivation|EventNam|
|00000150| 65 3b 0d 0a 76 61 72 28 | 45 76 65 6e 74 73 29 20 |e;..var(|Events) |
|00000160| 6e 61 6d 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |name | |
|00000170| 44 65 73 74 72 6f 79 65 | 64 45 76 65 6e 74 4e 61 |Destroye|dEventNa|
|00000180| 6d 65 3b 0d 0a 0d 0a 76 | 61 72 28 29 20 20 20 66 |me;....v|ar() f|
|00000190| 6c 6f 61 74 20 20 20 20 | 20 20 20 20 20 20 20 20 |loat | |
|000001a0| 20 20 20 43 6f 6e 73 74 | 72 75 63 74 69 6f 6e 54 | Const|ructionT|
|000001b0| 69 6d 65 3b 0d 0a 76 61 | 72 28 29 20 20 20 53 74 |ime;..va|r() St|
|000001c0| 61 74 69 63 4d 65 73 68 | 20 20 20 20 20 20 20 20 |aticMesh| |
|000001d0| 20 20 44 65 61 64 53 74 | 61 74 69 63 4d 65 73 68 | DeadSt|aticMesh|
|000001e0| 3b 0d 0a 76 61 72 28 29 | 20 20 20 73 6f 75 6e 64 |;..var()| sound|
|000001f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 44 | | D|
|00000200| 65 73 74 72 6f 79 65 64 | 53 6f 75 6e 64 3b 0d 0a |estroyed|Sound;..|
|00000210| 76 61 72 28 29 09 73 6f | 75 6e 64 09 09 09 09 43 |var().so|und....C|
|00000220| 6f 6e 73 74 72 75 63 74 | 65 64 53 6f 75 6e 64 3b |onstruct|edSound;|
|00000230| 0d 0a 76 61 72 28 29 09 | 73 6f 75 6e 64 09 09 09 |..var().|sound...|
|00000240| 09 53 74 61 72 74 43 6f | 6e 73 74 72 75 63 74 69 |.StartCo|nstructi|
|00000250| 6f 6e 53 6f 75 6e 64 3b | 0d 0a 76 61 72 28 29 20 |onSound;|..var() |
|00000260| 20 20 73 6f 75 6e 64 20 | 20 20 20 20 20 20 20 20 | sound | |
|00000270| 20 20 20 20 20 20 41 63 | 74 69 76 65 53 6f 75 6e | Ac|tiveSoun|
|00000280| 64 3b 0d 0a 76 61 72 28 | 29 20 20 20 73 6f 75 6e |d;..var(|) soun|
|00000290| 64 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |d | |
|000002a0| 4e 65 75 74 72 61 6c 53 | 6f 75 6e 64 3b 0d 0a 76 |NeutralS|ound;..v|
|000002b0| 61 72 28 29 20 20 20 73 | 6f 75 6e 64 20 20 20 20 |ar() s|ound |
|000002c0| 20 20 20 20 20 20 20 20 | 20 20 20 48 65 61 6c 69 | | Heali|
|000002d0| 6e 67 53 6f 75 6e 64 3b | 0d 0a 76 61 72 28 29 20 |ngSound;|..var() |
|000002e0| 20 20 73 6f 75 6e 64 20 | 20 20 20 20 20 20 20 20 | sound | |
|000002f0| 20 20 20 20 20 20 48 65 | 61 6c 65 64 53 6f 75 6e | He|aledSoun|
|00000300| 64 3b 0d 0a 76 61 72 28 | 29 20 20 20 62 6f 6f 6c |d;..var(|) bool|
|00000310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000320| 62 53 74 61 72 74 4e 65 | 75 74 72 61 6c 3b 0d 0a |bStartNe|utral;..|
|00000330| 76 61 72 28 29 20 20 20 | 62 6f 6f 6c 20 20 20 20 |var() |bool |
|00000340| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 50 6f 77 | | bPow|
|00000350| 65 72 65 64 3b 0d 0a 76 | 61 72 28 29 20 20 20 62 |ered;..v|ar() b|
|00000360| 6f 6f 6c 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ool | |
|00000370| 20 20 20 62 46 69 6e 61 | 6c 43 6f 72 65 3b 0d 0a | bFina|lCore;..|
|00000380| 0d 0a 76 61 72 20 20 20 | 20 20 62 6f 6f 6c 20 20 |..var | bool |
|00000390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 50 | | bP|
|000003a0| 6f 77 65 72 65 64 42 79 | 52 65 64 3b 0d 0a 76 61 |oweredBy|Red;..va|
|000003b0| 72 20 20 20 20 20 62 6f | 6f 6c 20 20 20 20 20 20 |r bo|ol |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 62 50 6f 77 65 72 | | bPower|
|000003d0| 65 64 42 79 42 6c 75 65 | 3b 0d 0a 76 61 72 20 20 |edByBlue|;..var |
|000003e0| 20 20 20 62 6f 6f 6c 20 | 20 20 20 20 20 20 20 20 | bool | |
|000003f0| 20 20 20 20 20 20 20 62 | 53 65 76 65 72 65 64 3b | b|Severed;|
|00000400| 0d 0a 76 61 72 20 20 20 | 20 20 62 6f 6f 6c 20 20 |..var | bool |
|00000410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 55 | | bU|
|00000420| 6e 64 65 72 41 74 74 61 | 63 6b 3b 0d 0a 76 61 72 |nderAtta|ck;..var|
|00000430| 20 20 20 20 20 62 6f 6f | 6c 20 20 20 20 20 20 20 | boo|l |
|00000440| 20 20 20 20 20 20 20 20 | 20 62 4f 6c 64 55 6e 64 | | bOldUnd|
|00000450| 65 72 41 74 74 61 63 6b | 3b 0d 0a 0d 0a 76 61 72 |erAttack|;....var|
|00000460| 20 20 20 20 20 67 6c 6f | 62 61 6c 63 6f 6e 66 69 | glo|balconfi|
|00000470| 67 20 20 62 6f 6f 6c 20 | 20 20 20 20 20 20 20 62 |g bool | b|
|00000480| 53 68 6f 77 4e 6f 64 65 | 42 65 61 6d 73 3b 0d 0a |ShowNode|Beams;..|
|00000490| 0d 0a 76 61 72 20 61 72 | 72 61 79 3c 6e 61 6d 65 |..var ar|ray<name|
|000004a0| 3e 20 4c 69 6e 6b 65 64 | 4e 6f 64 65 73 3b 0d 0a |> Linked|Nodes;..|
|000004b0| 76 61 72 20 61 72 72 61 | 79 3c 4f 4e 53 50 6f 77 |var arra|y<ONSPow|
|000004c0| 65 72 43 6f 72 65 3e 20 | 50 6f 77 65 72 4c 69 6e |erCore> |PowerLin|
|000004d0| 6b 73 3b 0d 0a 0d 0a 2f | 2f 20 49 6e 74 65 72 6e |ks;..../|/ Intern|
|000004e0| 61 6c 0d 0a 76 61 72 20 | 61 72 72 61 79 3c 4d 61 |al..var |array<Ma|
|000004f0| 74 65 72 69 61 6c 3e 20 | 52 65 64 43 6f 6e 73 74 |terial> |RedConst|
|00000500| 72 75 63 74 69 6e 67 53 | 6b 69 6e 73 3b 0d 0a 76 |ructingS|kins;..v|
|00000510| 61 72 20 61 72 72 61 79 | 3c 4d 61 74 65 72 69 61 |ar array|<Materia|
|00000520| 6c 3e 20 42 6c 75 65 43 | 6f 6e 73 74 72 75 63 74 |l> BlueC|onstruct|
|00000530| 69 6e 67 53 6b 69 6e 73 | 3b 0d 0a 76 61 72 20 61 |ingSkins|;..var a|
|00000540| 72 72 61 79 3c 4d 61 74 | 65 72 69 61 6c 3e 20 52 |rray<Mat|erial> R|
|00000550| 65 64 41 63 74 69 76 65 | 53 6b 69 6e 73 3b 0d 0a |edActive|Skins;..|
|00000560| 76 61 72 20 61 72 72 61 | 79 3c 4d 61 74 65 72 69 |var arra|y<Materi|
|00000570| 61 6c 3e 20 42 6c 75 65 | 41 63 74 69 76 65 53 6b |al> Blue|ActiveSk|
|00000580| 69 6e 73 3b 0d 0a 76 61 | 72 20 62 79 74 65 20 20 |ins;..va|r byte |
|00000590| 20 20 20 20 20 20 20 20 | 20 20 43 6f 72 65 53 74 | | CoreSt|
|000005a0| 61 67 65 3b 0d 0a 76 61 | 72 20 62 79 74 65 20 20 |age;..va|r byte |
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 4c 61 73 74 43 6f | | LastCo|
|000005c0| 72 65 53 74 61 67 65 3b | 0d 0a 76 61 72 20 62 79 |reStage;|..var by|
|000005d0| 74 65 20 20 20 20 20 20 | 20 20 20 20 20 20 46 69 |te | Fi|
|000005e0| 6e 61 6c 43 6f 72 65 44 | 69 73 74 61 6e 63 65 5b |nalCoreD|istance[|
|000005f0| 32 5d 3b 0d 0a 76 61 72 | 20 66 6c 6f 61 74 20 20 |2];..var| float |
|00000600| 20 20 20 20 20 20 20 20 | 20 43 6f 6e 73 74 72 75 | | Constru|
|00000610| 63 74 69 6f 6e 54 69 6d | 65 45 6c 61 70 73 65 64 |ctionTim|eElapsed|
|00000620| 3b 0d 0a 76 61 72 20 66 | 6c 6f 61 74 20 20 20 20 |;..var f|loat |
|00000630| 20 20 20 20 20 20 20 4c | 61 73 74 41 74 74 61 63 | L|astAttac|
|00000640| 6b 54 69 6d 65 3b 0d 0a | 76 61 72 20 66 6c 6f 61 |kTime;..|var floa|
|00000650| 74 20 20 20 20 20 20 20 | 20 20 20 20 4c 61 73 74 |t | Last|
|00000660| 41 74 74 61 63 6b 45 78 | 70 69 72 61 74 69 6f 6e |AttackEx|piration|
|00000670| 54 69 6d 65 3b 0d 0a 76 | 61 72 20 66 6c 6f 61 74 |Time;..v|ar float|
|00000680| 20 20 20 20 20 20 20 20 | 20 20 20 4c 61 73 74 41 | | LastA|
|00000690| 74 74 61 63 6b 41 6e 6e | 6f 75 6e 63 65 6d 65 6e |ttackAnn|ouncemen|
|000006a0| 74 54 69 6d 65 3b 0d 0a | 76 61 72 20 66 6c 6f 61 |tTime;..|var floa|
|000006b0| 74 20 20 20 20 20 20 20 | 20 20 20 20 4c 61 73 74 |t | Last|
|000006c0| 41 74 74 61 63 6b 4d 65 | 73 73 61 67 65 54 69 6d |AttackMe|ssageTim|
|000006d0| 65 3b 0d 0a 76 61 72 20 | 66 6c 6f 61 74 20 20 20 |e;..var |float |
|000006e0| 20 20 20 20 20 20 20 20 | 53 65 76 65 72 65 64 44 | |SeveredD|
|000006f0| 61 6d 61 67 65 50 65 72 | 53 65 63 6f 6e 64 3b 0d |amagePer|Second;.|
|00000700| 0a 76 61 72 20 66 6c 6f | 61 74 20 20 20 20 20 20 |.var flo|at |
|00000710| 20 20 20 20 20 48 65 61 | 6c 69 6e 67 54 69 6d 65 | Hea|lingTime|
|00000720| 3b 0d 0a 76 61 72 20 61 | 72 72 61 79 3c 41 63 74 |;..var a|rray<Act|
|00000730| 6f 72 3e 20 20 20 20 43 | 6c 6f 73 65 41 63 74 6f |or> C|loseActo|
|00000740| 72 73 3b 0d 0a 76 61 72 | 20 61 72 72 61 79 3c 4f |rs;..var| array<O|
|00000750| 4e 53 54 65 6c 65 70 6f | 72 74 50 61 64 3e 20 54 |NSTelepo|rtPad> T|
|00000760| 65 6c 65 70 6f 72 74 50 | 61 64 73 3b 0d 0a 76 61 |eleportP|ads;..va|
|00000770| 72 20 54 72 69 67 67 65 | 72 73 20 54 65 6c 65 70 |r Trigge|rs Telep|
|00000780| 6f 72 74 54 72 69 67 67 | 65 72 3b 0d 0a 76 61 72 |ortTrigg|er;..var|
|00000790| 20 69 6e 74 20 44 65 73 | 74 72 75 63 74 69 6f 6e | int Des|truction|
|000007a0| 4d 65 73 73 61 67 65 49 | 6e 64 65 78 3b 20 2f 2f |MessageI|ndex; //|
|000007b0| 62 61 73 65 20 73 77 69 | 74 63 68 20 66 6f 72 20 |base swi|tch for |
|000007c0| 4f 4e 53 4f 6e 73 6c 61 | 75 67 68 74 4d 65 73 73 |ONSOnsla|ughtMess|
|000007d0| 61 67 65 0d 0a 76 61 72 | 20 73 74 72 69 6e 67 20 |age..var| string |
|000007e0| 44 65 73 74 72 6f 79 65 | 64 45 76 65 6e 74 5b 34 |Destroye|dEvent[4|
|000007f0| 5d 3b 0d 0a 76 61 72 20 | 73 74 72 69 6e 67 20 43 |];..var |string C|
|00000800| 6f 6e 73 74 72 75 63 74 | 65 64 45 76 65 6e 74 5b |onstruct|edEvent[|
|00000810| 32 5d 3b 0d 0a 76 61 72 | 20 43 6f 6e 74 72 6f 6c |2];..var| Control|
|00000820| 6c 65 72 20 43 6f 6e 73 | 74 72 75 63 74 6f 72 3b |ler Cons|tructor;|
|00000830| 20 2f 2f 70 6c 61 79 65 | 72 20 77 68 6f 20 74 6f | //playe|r who to|
|00000840| 75 63 68 65 64 20 6d 65 | 20 74 6f 20 73 74 61 72 |uched me| to star|
|00000850| 74 20 63 6f 6e 73 74 72 | 75 63 74 69 6f 6e 0d 0a |t constr|uction..|
|00000860| 76 61 72 20 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 4c |var Cont|roller L|
|00000870| 61 73 74 48 65 61 6c 65 | 64 42 79 3b 0d 0a 76 61 |astHeale|dBy;..va|
|00000880| 72 20 4f 4e 53 4e 6f 64 | 65 48 65 61 6c 45 66 66 |r ONSNod|eHealEff|
|00000890| 65 63 74 20 4e 6f 64 65 | 48 65 61 6c 45 66 66 65 |ect Node|HealEffe|
|000008a0| 63 74 3b 0d 0a 76 61 72 | 20 45 6d 69 74 74 65 72 |ct;..var| Emitter|
|000008b0| 20 4e 6f 64 65 42 65 61 | 6d 45 66 66 65 63 74 3b | NodeBea|mEffect;|
|000008c0| 0d 0a 76 61 72 20 45 6d | 69 74 74 65 72 20 45 78 |..var Em|itter Ex|
|000008d0| 70 6c 6f 73 69 6f 6e 45 | 66 66 65 63 74 3b 0d 0a |plosionE|ffect;..|
|000008e0| 0d 0a 76 61 72 20 4f 4e | 53 46 72 65 65 52 6f 61 |..var ON|SFreeRoa|
|000008f0| 6d 69 6e 67 45 6e 65 72 | 67 79 45 66 66 65 63 74 |mingEner|gyEffect|
|00000900| 20 20 52 6f 61 6d 69 6e | 67 45 6e 65 72 67 79 3b | Roamin|gEnergy;|
|00000910| 0d 0a 76 61 72 20 4f 4e | 53 50 6f 77 65 72 43 6f |..var ON|SPowerCo|
|00000920| 72 65 53 68 69 65 6c 64 | 20 20 20 20 20 20 20 20 |reShield| |
|00000930| 20 20 53 68 69 65 6c 64 | 3b 0d 0a 76 61 72 20 63 | Shield|;..var c|
|00000940| 6c 61 73 73 3c 4f 4e 53 | 50 6f 77 65 72 43 6f 72 |lass<ONS|PowerCor|
|00000950| 65 53 68 69 65 6c 64 3e | 20 20 20 53 68 69 65 6c |eShield>| Shiel|
|00000960| 64 43 6c 61 73 73 3b 0d | 0a 76 61 72 20 76 65 63 |dClass;.|.var vec|
|00000970| 74 6f 72 09 09 09 53 68 | 69 65 6c 64 4f 66 66 73 |tor...Sh|ieldOffs|
|00000980| 65 74 3b 0d 0a 0d 0a 76 | 61 72 20 50 6c 61 79 65 |et;....v|ar Playe|
|00000990| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000009a0| 20 4c 61 73 74 44 61 6d | 61 67 65 64 42 79 3b 0d | LastDam|agedBy;.|
|000009b0| 0a 76 61 72 20 50 61 77 | 6e 20 4c 61 73 74 41 74 |.var Paw|n LastAt|
|000009c0| 74 61 63 6b 65 72 3b 0d | 0a 76 61 72 20 4f 4e 53 |tacker;.|.var ONS|
|000009d0| 50 6f 77 65 72 43 6f 72 | 65 20 4e 65 78 74 43 6f |PowerCor|e NextCo|
|000009e0| 72 65 3b 09 2f 2f 20 6c | 69 6e 6b 20 69 74 20 3a |re;.// l|ink it :|
|000009f0| 50 20 20 2d 2d 20 72 6a | 70 0d 0a 0d 0a 76 61 72 |P -- rj|p....var|
|00000a00| 20 62 79 74 65 20 4c 61 | 73 74 44 65 66 65 6e 64 | byte La|stDefend|
|00000a10| 65 72 54 65 61 6d 49 6e | 64 65 78 3b 0d 0a 76 61 |erTeamIn|dex;..va|
|00000a20| 72 28 48 55 44 29 20 76 | 65 63 74 6f 72 20 48 55 |r(HUD) v|ector HU|
|00000a30| 44 4c 6f 63 61 74 69 6f | 6e 3b 0d 0a 76 61 72 20 |DLocatio|n;..var |
|00000a40| 69 6e 74 20 4e 6f 64 65 | 4e 75 6d 3b 0d 0a 0d 0a |int Node|Num;....|
|00000a50| 72 65 70 6c 69 63 61 74 | 69 6f 6e 0d 0a 7b 0d 0a |replicat|ion..{..|
|00000a60| 09 72 65 6c 69 61 62 6c | 65 20 69 66 20 28 62 4e |.reliabl|e if (bN|
|00000a70| 65 74 44 69 72 74 79 20 | 26 26 20 52 6f 6c 65 20 |etDirty |&& Role |
|00000a80| 3d 3d 20 52 4f 4c 45 5f | 41 75 74 68 6f 72 69 74 |== ROLE_|Authorit|
|00000a90| 79 29 0d 0a 09 09 43 6f | 72 65 53 74 61 67 65 2c |y)....Co|reStage,|
|00000aa0| 20 62 55 6e 64 65 72 41 | 74 74 61 63 6b 2c 20 62 | bUnderA|ttack, b|
|00000ab0| 50 6f 77 65 72 65 64 42 | 79 52 65 64 2c 20 62 50 |PoweredB|yRed, bP|
|00000ac0| 6f 77 65 72 65 64 42 79 | 42 6c 75 65 2c 20 62 53 |oweredBy|Blue, bS|
|00000ad0| 65 76 65 72 65 64 3b 0d | 0a 7d 0d 0a 0d 0a 64 65 |evered;.|.}....de|
|00000ae0| 6c 65 67 61 74 65 20 55 | 70 64 61 74 65 4c 69 6e |legate U|pdateLin|
|00000af0| 6b 53 74 61 74 65 28 4f | 4e 53 50 6f 77 65 72 43 |kState(O|NSPowerC|
|00000b00| 6f 72 65 20 4e 6f 64 65 | 29 3b 0d 0a 64 65 6c 65 |ore Node|);..dele|
|00000b10| 67 61 74 65 20 4e 6f 74 | 69 66 79 55 70 64 61 74 |gate Not|ifyUpdat|
|00000b20| 65 4c 69 6e 6b 73 28 29 | 3b 0d 0a 64 65 6c 65 67 |eLinks()|;..deleg|
|00000b30| 61 74 65 20 4f 6e 43 6f | 72 65 44 65 73 74 72 6f |ate OnCo|reDestro|
|00000b40| 79 65 64 28 20 62 79 74 | 65 20 44 65 73 74 72 6f |yed( byt|e Destro|
|00000b50| 79 65 64 43 6f 72 65 49 | 6e 64 65 78 20 29 3b 0d |yedCoreI|ndex );.|
|00000b60| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|00000b70| 63 74 69 6f 6e 20 55 70 | 64 61 74 65 50 72 65 63 |ction Up|datePrec|
|00000b80| 61 63 68 65 4d 61 74 65 | 72 69 61 6c 73 28 29 0d |acheMate|rials().|
|00000b90| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 69 |.{...loc|al int i|
|00000ba0| 3b 0d 0a 0d 0a 09 66 6f | 72 20 28 20 69 3d 30 3b |;.....fo|r ( i=0;|
|00000bb0| 20 69 3c 52 65 64 43 6f | 6e 73 74 72 75 63 74 69 | i<RedCo|nstructi|
|00000bc0| 6e 67 53 6b 69 6e 73 2e | 4c 65 6e 67 74 68 3b 20 |ngSkins.|Length; |
|00000bd0| 69 2b 2b 20 29 0d 0a 09 | 09 4c 65 76 65 6c 2e 41 |i++ )...|.Level.A|
|00000be0| 64 64 50 72 65 63 61 63 | 68 65 4d 61 74 65 72 69 |ddPrecac|heMateri|
|00000bf0| 61 6c 28 52 65 64 43 6f | 6e 73 74 72 75 63 74 69 |al(RedCo|nstructi|
|00000c00| 6e 67 53 6b 69 6e 73 5b | 69 5d 29 3b 0d 0a 0d 0a |ngSkins[|i]);....|
|00000c10| 09 66 6f 72 20 28 20 69 | 3d 30 3b 20 69 3c 42 6c |.for ( i|=0; i<Bl|
|00000c20| 75 65 43 6f 6e 73 74 72 | 75 63 74 69 6e 67 53 6b |ueConstr|uctingSk|
|00000c30| 69 6e 73 2e 4c 65 6e 67 | 74 68 3b 20 69 2b 2b 20 |ins.Leng|th; i++ |
|00000c40| 29 0d 0a 09 09 4c 65 76 | 65 6c 2e 41 64 64 50 72 |)....Lev|el.AddPr|
|00000c50| 65 63 61 63 68 65 4d 61 | 74 65 72 69 61 6c 28 42 |ecacheMa|terial(B|
|00000c60| 6c 75 65 43 6f 6e 73 74 | 72 75 63 74 69 6e 67 53 |lueConst|ructingS|
|00000c70| 6b 69 6e 73 5b 69 5d 29 | 3b 0d 0a 0d 0a 09 66 6f |kins[i])|;.....fo|
|00000c80| 72 20 28 20 69 3d 30 3b | 20 69 3c 52 65 64 41 63 |r ( i=0;| i<RedAc|
|00000c90| 74 69 76 65 53 6b 69 6e | 73 2e 4c 65 6e 67 74 68 |tiveSkin|s.Length|
|00000ca0| 3b 20 69 2b 2b 20 29 0d | 0a 09 09 4c 65 76 65 6c |; i++ ).|...Level|
|00000cb0| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|00000cc0| 72 69 61 6c 28 52 65 64 | 41 63 74 69 76 65 53 6b |rial(Red|ActiveSk|
|00000cd0| 69 6e 73 5b 69 5d 29 3b | 0d 0a 0d 0a 09 66 6f 72 |ins[i]);|.....for|
|00000ce0| 20 28 20 69 3d 30 3b 20 | 69 3c 42 6c 75 65 41 63 | ( i=0; |i<BlueAc|
|00000cf0| 74 69 76 65 53 6b 69 6e | 73 2e 4c 65 6e 67 74 68 |tiveSkin|s.Length|
|00000d00| 3b 20 69 2b 2b 20 29 0d | 0a 09 09 4c 65 76 65 6c |; i++ ).|...Level|
|00000d10| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|00000d20| 72 69 61 6c 28 42 6c 75 | 65 41 63 74 69 76 65 53 |rial(Blu|eActiveS|
|00000d30| 6b 69 6e 73 5b 69 5d 29 | 3b 0d 0a 0d 0a 09 4c 65 |kins[i])|;.....Le|
|00000d40| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d |vel.AddP|recacheM|
|00000d50| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|00000d60| 27 41 57 2d 32 30 30 34 | 50 61 72 74 69 63 6c 65 |'AW-2004|Particle|
|00000d70| 73 2e 45 6e 65 72 67 79 | 2e 41 69 72 42 6c 61 73 |s.Energy|.AirBlas|
|00000d80| 74 27 29 3b 0d 0a 09 4c | 65 76 65 6c 2e 41 64 64 |t');...L|evel.Add|
|00000d90| 50 72 65 63 61 63 68 65 | 4d 61 74 65 72 69 61 6c |Precache|Material|
|00000da0| 28 4d 61 74 65 72 69 61 | 6c 27 41 57 2d 32 30 30 |(Materia|l'AW-200|
|00000db0| 34 50 61 72 74 69 63 6c | 65 73 2e 45 6e 65 72 67 |4Particl|es.Energ|
|00000dc0| 79 2e 50 6f 77 65 72 42 | 65 61 6d 27 29 3b 0d 0a |y.PowerB|eam');..|
|00000dd0| 09 4c 65 76 65 6c 2e 41 | 64 64 50 72 65 63 61 63 |.Level.A|ddPrecac|
|00000de0| 68 65 4d 61 74 65 72 69 | 61 6c 28 4d 61 74 65 72 |heMateri|al(Mater|
|00000df0| 69 61 6c 27 4f 4e 53 73 | 74 72 75 63 74 75 72 65 |ial'ONSs|tructure|
|00000e00| 54 65 78 74 75 72 65 73 | 2e 43 6f 72 65 42 72 65 |Textures|.CoreBre|
|00000e10| 61 63 68 47 72 6f 75 70 | 2e 65 78 70 37 5f 66 72 |achGroup|.exp7_fr|
|00000e20| 61 6d 65 73 42 4c 55 45 | 27 29 3b 0d 0a 09 4c 65 |amesBLUE|');...Le|
|00000e30| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d |vel.AddP|recacheM|
|00000e40| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|00000e50| 27 4f 4e 53 73 74 72 75 | 63 74 75 72 65 54 65 78 |'ONSstru|ctureTex|
|00000e60| 74 75 72 65 73 2e 43 6f | 72 65 42 72 65 61 63 68 |tures.Co|reBreach|
|00000e70| 47 72 6f 75 70 2e 63 6f | 72 65 42 72 65 61 63 68 |Group.co|reBreach|
|00000e80| 41 43 43 52 45 54 49 4f | 4e 62 6c 75 65 27 29 3b |ACCRETIO|Nblue');|
|00000e90| 0d 0a 09 4c 65 76 65 6c | 2e 41 64 64 50 72 65 63 |...Level|.AddPrec|
|00000ea0| 61 63 68 65 4d 61 74 65 | 72 69 61 6c 28 4d 61 74 |acheMate|rial(Mat|
|00000eb0| 65 72 69 61 6c 27 4f 4e | 53 73 74 72 75 63 74 75 |erial'ON|Sstructu|
|00000ec0| 72 65 54 65 78 74 75 72 | 65 73 2e 43 6f 72 65 42 |reTextur|es.CoreB|
|00000ed0| 72 65 61 63 68 47 72 6f | 75 70 2e 43 6f 72 65 42 |reachGro|up.CoreB|
|00000ee0| 72 65 61 63 68 53 68 6f | 63 6b 52 69 6e 67 54 52 |reachSho|ckRingTR|
|00000ef0| 41 4e 53 27 29 3b 0d 0a | 09 4c 65 76 65 6c 2e 41 |ANS');..|.Level.A|
|00000f00| 64 64 50 72 65 63 61 63 | 68 65 4d 61 74 65 72 69 |ddPrecac|heMateri|
|00000f10| 61 6c 28 4d 61 74 65 72 | 69 61 6c 27 4f 4e 53 73 |al(Mater|ial'ONSs|
|00000f20| 74 72 75 63 74 75 72 65 | 54 65 78 74 75 72 65 73 |tructure|Textures|
|00000f30| 2e 43 6f 72 65 42 72 65 | 61 63 68 47 72 6f 75 70 |.CoreBre|achGroup|
|00000f40| 2e 43 6f 72 65 42 72 65 | 61 63 68 53 68 6f 63 6b |.CoreBre|achShock|
|00000f50| 52 49 4e 47 65 64 67 65 | 27 29 3b 0d 0a 09 4c 65 |RINGedge|');...Le|
|00000f60| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d |vel.AddP|recacheM|
|00000f70| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|00000f80| 27 56 4d 50 61 72 74 69 | 63 6c 65 54 65 78 74 75 |'VMParti|cleTextu|
|00000f90| 72 65 73 2e 50 6f 77 65 | 72 4e 6f 64 65 45 58 50 |res.Powe|rNodeEXP|
|00000fa0| 2e 70 6f 77 65 72 4e 6f | 64 65 45 58 50 62 6c 75 |.powerNo|deEXPblu|
|00000fb0| 65 54 45 58 27 29 3b 0d | 0a 09 4c 65 76 65 6c 2e |eTEX');.|..Level.|
|00000fc0| 41 64 64 50 72 65 63 61 | 63 68 65 4d 61 74 65 72 |AddPreca|cheMater|
|00000fd0| 69 61 6c 28 4d 61 74 65 | 72 69 61 6c 27 4f 4e 53 |ial(Mate|rial'ONS|
|00000fe0| 73 74 72 75 63 74 75 72 | 65 54 65 78 74 75 72 65 |structur|eTexture|
|00000ff0| 73 2e 43 6f 72 65 42 72 | 65 61 63 68 47 72 6f 75 |s.CoreBr|eachGrou|
|00001000| 70 2e 63 6f 72 65 42 72 | 65 61 63 68 41 43 43 52 |p.coreBr|eachACCR|
|00001010| 45 54 49 4f 4e 72 65 64 | 27 29 3b 0d 0a 09 4c 65 |ETIONred|');...Le|
|00001020| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d |vel.AddP|recacheM|
|00001030| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|00001040| 27 56 4d 50 61 72 74 69 | 63 6c 65 54 65 78 74 75 |'VMParti|cleTextu|
|00001050| 72 65 73 2e 50 6f 77 65 | 72 4e 6f 64 65 45 58 50 |res.Powe|rNodeEXP|
|00001060| 2e 70 6f 77 65 72 4e 6f | 64 65 45 58 50 72 65 64 |.powerNo|deEXPred|
|00001070| 54 45 58 27 29 3b 0d 0a | 0d 0a 20 20 20 20 53 75 |TEX');..|.. Su|
|00001080| 70 65 72 2e 55 70 64 61 | 74 65 50 72 65 63 61 63 |per.Upda|tePrecac|
|00001090| 68 65 4d 61 74 65 72 69 | 61 6c 73 28 29 3b 0d 0a |heMateri|als();..|
|000010a0| 7d 0d 0a 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 66 |}....sim|ulated f|
|000010b0| 75 6e 63 74 69 6f 6e 20 | 55 70 64 61 74 65 50 72 |unction |UpdatePr|
|000010c0| 65 63 61 63 68 65 53 74 | 61 74 69 63 4d 65 73 68 |ecacheSt|aticMesh|
|000010d0| 65 73 28 29 0d 0a 7b 0d | 0a 20 20 20 20 69 66 20 |es()..{.|. if |
|000010e0| 28 44 65 61 64 53 74 61 | 74 69 63 4d 65 73 68 20 |(DeadSta|ticMesh |
|000010f0| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 09 20 20 20 4c 65 |!= None)|... Le|
|00001100| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 53 |vel.AddP|recacheS|
|00001110| 74 61 74 69 63 4d 65 73 | 68 28 44 65 61 64 53 74 |taticMes|h(DeadSt|
|00001120| 61 74 69 63 4d 65 73 68 | 29 3b 0d 0a 0d 0a 09 53 |aticMesh|);.....S|
|00001130| 75 70 65 72 2e 55 70 64 | 61 74 65 50 72 65 63 61 |uper.Upd|atePreca|
|00001140| 63 68 65 53 74 61 74 69 | 63 4d 65 73 68 65 73 28 |cheStati|cMeshes(|
|00001150| 29 3b 0d 0a 7d 0d 0a 0d | 0a 65 76 65 6e 74 20 53 |);..}...|.event S|
|00001160| 65 74 49 6e 69 74 69 61 | 6c 53 74 61 74 65 28 29 |etInitia|lState()|
|00001170| 0d 0a 7b 0d 0a 20 20 20 | 20 44 69 73 61 62 6c 65 |..{.. | Disable|
|00001180| 28 27 54 69 63 6b 27 29 | 3b 0d 0a 0d 0a 09 49 6e |('Tick')|;.....In|
|00001190| 69 74 69 61 6c 53 74 61 | 74 65 20 3d 20 27 27 3b |itialSta|te = '';|
|000011a0| 0d 0a 0d 0a 20 20 20 20 | 69 66 20 28 50 6f 77 65 |.... |if (Powe|
|000011b0| 72 4c 69 6e 6b 73 2e 6c | 65 6e 67 74 68 20 3d 3d |rLinks.l|ength ==|
|000011c0| 20 30 29 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 | 0).. | {.. |
|000011d0| 20 20 20 20 43 6f 72 65 | 53 74 61 67 65 20 3d 20 | Core|Stage = |
|000011e0| 32 35 35 3b 0d 0a 20 20 | 20 20 20 20 20 20 50 6f |255;.. | Po|
|000011f0| 77 65 72 43 6f 72 65 44 | 69 73 61 62 6c 65 64 28 |werCoreD|isabled(|
|00001200| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 49 6e 69 74 |);.. | Init|
|00001210| 69 61 6c 53 74 61 74 65 | 20 3d 20 27 44 69 73 61 |ialState| = 'Disa|
|00001220| 62 6c 65 64 43 6f 72 65 | 27 3b 0d 0a 20 20 20 20 |bledCore|';.. |
|00001230| 7d 0d 0a 20 20 20 20 65 | 6c 73 65 20 69 66 20 28 |}.. e|lse if (|
|00001240| 62 53 74 61 72 74 4e 65 | 75 74 72 61 6c 29 0d 0a |bStartNe|utral)..|
|00001250| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 43 | {.. | C|
|00001260| 6f 72 65 53 74 61 67 65 | 20 3d 20 34 3b 0d 0a 20 |oreStage| = 4;.. |
|00001270| 20 20 20 20 20 20 20 50 | 6f 77 65 72 43 6f 72 65 | P|owerCore|
|00001280| 4e 65 75 74 72 61 6c 28 | 29 3b 0d 0a 20 20 20 20 |Neutral(|);.. |
|00001290| 20 20 20 20 49 6e 69 74 | 69 61 6c 53 74 61 74 65 | Init|ialState|
|000012a0| 20 3d 20 27 4e 65 75 74 | 72 61 6c 43 6f 72 65 27 | = 'Neut|ralCore'|
|000012b0| 3b 0d 0a 20 20 20 20 7d | 0d 0a 20 20 20 20 65 6c |;.. }|.. el|
|000012c0| 73 65 0d 0a 20 20 20 20 | 7b 0d 0a 09 09 43 6f 72 |se.. |{....Cor|
|000012d0| 65 53 74 61 67 65 20 3d | 20 30 3b 0d 0a 20 20 20 |eStage =| 0;.. |
|000012e0| 20 20 20 20 20 50 6f 77 | 65 72 43 6f 72 65 41 63 | Pow|erCoreAc|
|000012f0| 74 69 76 65 28 29 3b 0d | 0a 20 20 20 20 7d 0d 0a |tive();.|. }..|
|00001300| 0d 0a 20 20 20 20 53 75 | 70 65 72 2e 53 65 74 49 |.. Su|per.SetI|
|00001310| 6e 69 74 69 61 6c 53 74 | 61 74 65 28 29 3b 0d 0a |nitialSt|ate();..|
|00001320| 7d 0d 0a 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 65 |}....sim|ulated e|
|00001330| 76 65 6e 74 20 42 65 67 | 69 6e 50 6c 61 79 28 29 |vent Beg|inPlay()|
|00001340| 0d 0a 7b 0d 0a 20 20 20 | 20 50 6f 77 65 72 4c 69 |..{.. | PowerLi|
|00001350| 6e 6b 73 2e 4c 65 6e 67 | 74 68 20 3d 20 30 3b 0d |nks.Leng|th = 0;.|
|00001360| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00001370| 65 76 65 6e 74 20 50 6f | 73 74 42 65 67 69 6e 50 |event Po|stBeginP|
|00001380| 6c 61 79 28 29 0d 0a 7b | 0d 0a 20 20 20 20 6c 6f |lay()..{|.. lo|
|00001390| 63 61 6c 20 62 6f 6f 6c | 20 62 57 61 73 44 69 73 |cal bool| bWasDis|
|000013a0| 61 62 6c 65 64 3b 0d 0a | 0d 0a 20 20 20 20 62 57 |abled;..|.. bW|
|000013b0| 61 73 44 69 73 61 62 6c | 65 64 20 3d 20 62 44 69 |asDisabl|ed = bDi|
|000013c0| 73 61 62 6c 65 64 3b 0d | 0a 20 20 20 20 53 75 70 |sabled;.|. Sup|
|000013d0| 65 72 2e 50 6f 73 74 42 | 65 67 69 6e 50 6c 61 79 |er.PostB|eginPlay|
|000013e0| 28 29 3b 0d 0a 20 20 20 | 20 62 44 69 73 61 62 6c |();.. | bDisabl|
|000013f0| 65 64 20 3d 20 62 57 61 | 73 44 69 73 61 62 6c 65 |ed = bWa|sDisable|
|00001400| 64 3b 0d 0a 0d 0a 20 20 | 20 20 53 68 69 65 6c 64 |d;.... | Shield|
|00001410| 20 3d 20 53 70 61 77 6e | 28 53 68 69 65 6c 64 43 | = Spawn|(ShieldC|
|00001420| 6c 61 73 73 2c 20 73 65 | 6c 66 2c 2c 20 4c 6f 63 |lass, se|lf,, Loc|
|00001430| 61 74 69 6f 6e 20 2b 20 | 53 68 69 65 6c 64 4f 66 |ation + |ShieldOf|
|00001440| 66 73 65 74 29 3b 0d 0a | 0d 0a 20 20 20 20 53 65 |fset);..|.. Se|
|00001450| 74 75 70 50 6f 77 65 72 | 4c 69 6e 6b 73 28 29 3b |tupPower|Links();|
|00001460| 0d 0a 0d 0a 20 20 20 20 | 69 66 20 28 52 6f 6c 65 |.... |if (Role|
|00001470| 20 3d 3d 20 52 4f 4c 45 | 5f 41 75 74 68 6f 72 69 | == ROLE|_Authori|
|00001480| 74 79 29 0d 0a 20 20 20 | 20 09 53 70 61 77 6e 4e |ty).. | .SpawnN|
|00001490| 6f 64 65 54 65 6c 65 70 | 6f 72 74 54 72 69 67 67 |odeTelep|ortTrigg|
|000014a0| 65 72 28 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |er();..}|....func|
|000014b0| 74 69 6f 6e 20 53 70 61 | 77 6e 4e 6f 64 65 54 65 |tion Spa|wnNodeTe|
|000014c0| 6c 65 70 6f 72 74 54 72 | 69 67 67 65 72 28 29 0d |leportTr|igger().|
|000014d0| 0a 7b 0d 0a 09 54 65 6c | 65 70 6f 72 74 54 72 69 |.{...Tel|eportTri|
|000014e0| 67 67 65 72 20 3d 20 73 | 70 61 77 6e 28 63 6c 61 |gger = s|pawn(cla|
|000014f0| 73 73 27 4f 4e 53 50 43 | 54 65 6c 65 70 6f 72 74 |ss'ONSPC|Teleport|
|00001500| 54 72 69 67 67 65 72 27 | 2c 20 73 65 6c 66 29 3b |Trigger'|, self);|
|00001510| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00001520| 20 65 76 65 6e 74 20 50 | 6f 73 74 4e 65 74 42 65 | event P|ostNetBe|
|00001530| 67 69 6e 50 6c 61 79 28 | 29 0d 0a 7b 0d 0a 20 20 |ginPlay(|)..{.. |
|00001540| 20 20 46 69 6e 64 43 6c | 6f 73 65 41 63 74 6f 72 | FindCl|oseActor|
|00001550| 73 28 29 3b 0d 0a 20 20 | 20 20 43 68 65 63 6b 53 |s();.. | CheckS|
|00001560| 68 69 65 6c 64 28 29 3b | 0d 0a 7d 0d 0a 0d 0a 73 |hield();|..}....s|
|00001570| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00001580| 6e 20 4f 4e 53 50 6f 77 | 65 72 43 6f 72 65 20 43 |n ONSPow|erCore C|
|00001590| 6c 6f 73 65 73 74 54 6f | 28 41 63 74 6f 72 20 41 |losestTo|(Actor A|
|000015a0| 29 0d 0a 7b 0d 0a 20 20 | 20 20 6c 6f 63 61 6c 20 |)..{.. | local |
|000015b0| 66 6c 6f 61 74 20 44 69 | 73 74 61 6e 63 65 2c 20 |float Di|stance, |
|000015c0| 42 65 73 74 44 69 73 74 | 61 6e 63 65 3b 0d 0a 20 |BestDist|ance;.. |
|000015d0| 20 20 20 6c 6f 63 61 6c | 20 4f 4e 53 50 6f 77 65 | local| ONSPowe|
|000015e0| 72 43 6f 72 65 20 43 2c | 20 42 65 73 74 3b 0d 0a |rCore C,| Best;..|
|000015f0| 0d 0a 09 42 65 73 74 44 | 69 73 74 61 6e 63 65 20 |...BestD|istance |
|00001600| 3d 20 56 53 69 7a 65 28 | 41 2e 4c 6f 63 61 74 69 |= VSize(|A.Locati|
|00001610| 6f 6e 20 2d 20 4c 6f 63 | 61 74 69 6f 6e 29 3b 0d |on - Loc|ation);.|
|00001620| 0a 09 42 65 73 74 20 3d | 20 53 65 6c 66 3b 0d 0a |..Best =| Self;..|
|00001630| 0d 0a 09 66 6f 72 20 28 | 20 43 20 3d 20 4e 65 78 |...for (| C = Nex|
|00001640| 74 43 6f 72 65 3b 20 43 | 20 21 3d 20 53 65 6c 66 |tCore; C| != Self|
|00001650| 20 26 26 20 43 20 21 3d | 20 4e 6f 6e 65 3b 20 43 | && C !=| None; C|
|00001660| 20 3d 20 43 2e 4e 65 78 | 74 43 6f 72 65 20 29 0d | = C.Nex|tCore ).|
|00001670| 0a 09 7b 0d 0a 09 09 44 | 69 73 74 61 6e 63 65 20 |..{....D|istance |
|00001680| 3d 20 56 53 69 7a 65 28 | 41 2e 4c 6f 63 61 74 69 |= VSize(|A.Locati|
|00001690| 6f 6e 20 2d 20 43 2e 4c | 6f 63 61 74 69 6f 6e 29 |on - C.L|ocation)|
|000016a0| 3b 0d 0a 09 09 69 66 20 | 28 20 44 69 73 74 61 6e |;....if |( Distan|
|000016b0| 63 65 20 3c 20 42 65 73 | 74 44 69 73 74 61 6e 63 |ce < Bes|tDistanc|
|000016c0| 65 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 42 65 73 |e )....{|.....Bes|
|000016d0| 74 44 69 73 74 61 6e 63 | 65 20 3d 20 44 69 73 74 |tDistanc|e = Dist|
|000016e0| 61 6e 63 65 3b 0d 0a 09 | 09 09 42 65 73 74 20 3d |ance;...|..Best =|
|000016f0| 20 43 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 0d 0a | C;....}|...}....|
|00001700| 09 72 65 74 75 72 6e 20 | 42 65 73 74 3b 0d 0a 7d |.return |Best;..}|
|00001710| 0d 0a 0d 0a 73 69 6d 75 | 6c 61 74 65 64 20 66 75 |....simu|lated fu|
|00001720| 6e 63 74 69 6f 6e 20 46 | 69 6e 64 43 6c 6f 73 65 |nction F|indClose|
|00001730| 41 63 74 6f 72 73 28 29 | 0d 0a 7b 0d 0a 09 6c 6f |Actors()|..{...lo|
|00001740| 63 61 6c 20 41 63 74 6f | 72 20 41 3b 0d 0a 0d 0a |cal Acto|r A;....|
|00001750| 09 43 6c 6f 73 65 41 63 | 74 6f 72 73 2e 4c 65 6e |.CloseAc|tors.Len|
|00001760| 67 74 68 20 3d 20 30 3b | 0d 0a 0d 0a 09 69 66 20 |gth = 0;|.....if |
|00001770| 28 52 6f 6c 65 20 3d 3d | 20 52 4f 4c 45 5f 41 75 |(Role ==| ROLE_Au|
|00001780| 74 68 6f 72 69 74 79 29 | 0d 0a 09 7b 0d 0a 09 09 |thority)|...{....|
|00001790| 66 6f 72 65 61 63 68 20 | 41 6c 6c 41 63 74 6f 72 |foreach |AllActor|
|000017a0| 73 28 63 6c 61 73 73 20 | 27 41 63 74 6f 72 27 2c |s(class |'Actor',|
|000017b0| 20 41 29 0d 0a 09 09 09 | 69 66 20 28 20 28 41 2e | A).....|if ( (A.|
|000017c0| 49 73 41 28 27 50 6c 61 | 79 65 72 53 74 61 72 74 |IsA('Pla|yerStart|
|000017d0| 27 29 20 7c 7c 20 41 2e | 49 73 41 28 27 4f 4e 53 |') || A.|IsA('ONS|
|000017e0| 56 65 68 69 63 6c 65 46 | 61 63 74 6f 72 79 27 29 |VehicleF|actory')|
|000017f0| 20 7c 7c 20 41 2e 49 73 | 41 28 27 4f 4e 53 53 74 | || A.Is|A('ONSSt|
|00001800| 61 74 69 6f 6e 61 72 79 | 57 65 61 70 6f 6e 50 61 |ationary|WeaponPa|
|00001810| 77 6e 27 29 20 7c 7c 20 | 41 2e 49 73 41 28 27 78 |wn') || |A.IsA('x|
|00001820| 54 65 61 6d 42 61 6e 6e | 65 72 27 29 20 7c 7c 20 |TeamBann|er') || |
|00001830| 41 2e 49 73 41 28 27 4f | 4e 53 54 65 6c 65 70 6f |A.IsA('O|NSTelepo|
|00001840| 72 74 50 61 64 27 29 29 | 0d 0a 09 09 09 20 20 20 |rtPad'))|..... |
|00001850| 20 20 26 26 20 43 6c 6f | 73 65 73 74 54 6f 28 41 | && Clo|sestTo(A|
|00001860| 29 20 3d 3d 20 73 65 6c | 66 20 29 0d 0a 09 09 09 |) == sel|f ).....|
|00001870| 7b 0d 0a 09 09 09 09 69 | 66 20 28 41 2e 49 73 41 |{......i|f (A.IsA|
|00001880| 28 27 4f 4e 53 54 65 6c | 65 70 6f 72 74 50 61 64 |('ONSTel|eportPad|
|00001890| 27 29 29 0d 0a 09 09 09 | 09 7b 0d 0a 09 09 09 09 |')).....|.{......|
|000018a0| 09 41 2e 53 65 74 4f 77 | 6e 65 72 28 73 65 6c 66 |.A.SetOw|ner(self|
|000018b0| 29 3b 0d 0a 09 09 09 09 | 09 54 65 6c 65 70 6f 72 |);......|.Telepor|
|000018c0| 74 50 61 64 73 5b 54 65 | 6c 65 70 6f 72 74 50 61 |tPads[Te|leportPa|
|000018d0| 64 73 2e 6c 65 6e 67 74 | 68 5d 20 3d 20 4f 4e 53 |ds.lengt|h] = ONS|
|000018e0| 54 65 6c 65 70 6f 72 74 | 50 61 64 28 41 29 3b 0d |Teleport|Pad(A);.|
|000018f0| 0a 09 09 09 09 7d 0d 0a | 09 09 09 09 65 6c 73 65 |.....}..|....else|
|00001900| 0d 0a 09 09 09 09 09 43 | 6c 6f 73 65 41 63 74 6f |.......C|loseActo|
|00001910| 72 73 5b 43 6c 6f 73 65 | 41 63 74 6f 72 73 2e 4c |rs[Close|Actors.L|
|00001920| 65 6e 67 74 68 5d 20 3d | 20 41 3b 0d 0a 09 09 09 |ength] =| A;.....|
|00001930| 7d 0d 0a 09 7d 0d 0a 09 | 65 6c 73 65 0d 0a 09 7b |}...}...|else...{|
|00001940| 0d 0a 09 09 66 6f 72 65 | 61 63 68 20 41 6c 6c 41 |....fore|ach AllA|
|00001950| 63 74 6f 72 73 28 63 6c | 61 73 73 27 41 63 74 6f |ctors(cl|ass'Acto|
|00001960| 72 27 2c 20 41 29 0d 0a | 09 09 09 69 66 20 28 28 |r', A)..|...if ((|
|00001970| 41 2e 49 73 41 28 27 78 | 54 65 61 6d 42 61 6e 6e |A.IsA('x|TeamBann|
|00001980| 65 72 27 29 20 7c 7c 20 | 41 2e 49 73 41 28 27 4f |er') || |A.IsA('O|
|00001990| 4e 53 54 65 6c 65 70 6f | 72 74 50 61 64 27 29 29 |NSTelepo|rtPad'))|
|000019a0| 20 26 26 20 43 6c 6f 73 | 65 73 74 54 6f 28 41 29 | && Clos|estTo(A)|
|000019b0| 20 3d 3d 20 73 65 6c 66 | 29 0d 0a 09 09 09 7b 0d | == self|).....{.|
|000019c0| 0a 09 09 09 09 69 66 20 | 28 41 2e 49 73 41 28 27 |.....if |(A.IsA('|
|000019d0| 4f 4e 53 54 65 6c 65 70 | 6f 72 74 50 61 64 27 29 |ONSTelep|ortPad')|
|000019e0| 29 0d 0a 09 09 09 09 7b | 0d 0a 09 09 09 09 09 41 |)......{|.......A|
|000019f0| 2e 53 65 74 4f 77 6e 65 | 72 28 73 65 6c 66 29 3b |.SetOwne|r(self);|
|00001a00| 0d 0a 09 09 09 09 09 54 | 65 6c 65 70 6f 72 74 50 |.......T|eleportP|
|00001a10| 61 64 73 5b 54 65 6c 65 | 70 6f 72 74 50 61 64 73 |ads[Tele|portPads|
|00001a20| 2e 6c 65 6e 67 74 68 5d | 20 3d 20 4f 4e 53 54 65 |.length]| = ONSTe|
|00001a30| 6c 65 70 6f 72 74 50 61 | 64 28 41 29 3b 0d 0a 09 |leportPa|d(A);...|
|00001a40| 09 09 09 7d 0d 0a 09 09 | 09 09 65 6c 73 65 0d 0a |...}....|..else..|
|00001a50| 09 09 09 09 09 43 6c 6f | 73 65 41 63 74 6f 72 73 |.....Clo|seActors|
|00001a60| 5b 43 6c 6f 73 65 41 63 | 74 6f 72 73 2e 4c 65 6e |[CloseAc|tors.Len|
|00001a70| 67 74 68 5d 20 3d 20 41 | 3b 0d 0a 09 09 09 7d 0d |gth] = A|;.....}.|
|00001a80| 0a 09 7d 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |..}..}..|..simula|
|00001a90| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 53 65 74 |ted func|tion Set|
|00001aa0| 75 70 50 6f 77 65 72 4c | 69 6e 6b 73 28 29 0d 0a |upPowerL|inks()..|
|00001ab0| 7b 0d 0a 20 20 20 20 6c | 6f 63 61 6c 20 4f 4e 53 |{.. l|ocal ONS|
|00001ac0| 50 6f 77 65 72 43 6f 72 | 65 20 50 43 3b 0d 0a 20 |PowerCor|e PC;.. |
|00001ad0| 20 20 20 6c 6f 63 61 6c | 20 4e 61 76 69 67 61 74 | local| Navigat|
|00001ae0| 69 6f 6e 50 6f 69 6e 74 | 20 4e 3b 0d 0a 0d 0a 2f |ionPoint| N;..../|
|00001af0| 2f 09 6c 6f 67 28 4e 61 | 6d 65 40 22 53 65 74 75 |/.log(Na|me@"Setu|
|00001b00| 70 50 6f 77 65 72 4c 69 | 6e 6b 73 28 29 22 29 3b |pPowerLi|nks()");|
|00001b10| 0d 0a 20 20 20 20 66 6f | 72 20 28 20 4e 20 3d 20 |.. fo|r ( N = |
|00001b20| 4c 65 76 65 6c 2e 4e 61 | 76 69 67 61 74 69 6f 6e |Level.Na|vigation|
|00001b30| 50 6f 69 6e 74 4c 69 73 | 74 3b 20 4e 20 21 3d 20 |PointLis|t; N != |
|00001b40| 4e 6f 6e 65 3b 20 4e 20 | 3d 20 4e 2e 6e 65 78 74 |None; N |= N.next|
|00001b50| 4e 61 76 69 67 61 74 69 | 6f 6e 50 6f 69 6e 74 20 |Navigati|onPoint |
|00001b60| 29 0d 0a 20 20 20 20 7b | 0d 0a 20 20 20 20 09 50 |).. {|.. .P|
|00001b70| 43 20 3d 20 4f 4e 53 50 | 6f 77 65 72 43 6f 72 65 |C = ONSP|owerCore|
|00001b80| 28 4e 29 3b 0d 0a 20 20 | 20 20 09 69 66 20 28 20 |(N);.. | .if ( |
|00001b90| 50 43 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 20 20 |PC != No|ne ).. |
|00001ba0| 20 20 09 7b 0d 0a 20 20 | 20 20 09 09 69 66 20 28 | .{.. | ..if (|
|00001bb0| 20 4e 65 78 74 43 6f 72 | 65 20 3d 3d 20 4e 6f 6e | NextCor|e == Non|
|00001bc0| 65 20 29 0d 0a 20 20 20 | 20 09 09 7b 0d 0a 09 09 |e ).. | ..{....|
|00001bd0| 09 09 69 66 20 28 20 50 | 43 2e 4e 65 78 74 43 6f |..if ( P|C.NextCo|
|00001be0| 72 65 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |re == No|ne )....|
|00001bf0| 09 09 09 4e 65 78 74 43 | 6f 72 65 20 3d 20 50 43 |...NextC|ore = PC|
|00001c00| 3b 0d 0a 09 09 09 09 65 | 6c 73 65 20 4e 65 78 74 |;......e|lse Next|
|00001c10| 43 6f 72 65 20 3d 20 50 | 43 2e 4e 65 78 74 43 6f |Core = P|C.NextCo|
|00001c20| 72 65 3b 0d 0a 09 09 09 | 09 50 43 2e 4e 65 78 74 |re;.....|.PC.Next|
|00001c30| 43 6f 72 65 20 3d 20 53 | 65 6c 66 3b 0d 0a 09 09 |Core = S|elf;....|
|00001c40| 09 7d 0d 0a 0d 0a 09 09 | 09 69 66 20 28 20 53 68 |.}......|.if ( Sh|
|00001c50| 6f 75 6c 64 4c 69 6e 6b | 54 6f 28 50 43 29 20 29 |ouldLink|To(PC) )|
|00001c60| 0d 0a 09 09 09 09 41 64 | 64 50 6f 77 65 72 4c 69 |......Ad|dPowerLi|
|00001c70| 6e 6b 28 50 43 29 3b 0d | 0a 09 09 7d 0d 0a 09 7d |nk(PC);.|...}...}|
|00001c80| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00001c90| 20 66 75 6e 63 74 69 6f | 6e 20 52 65 73 65 74 4c | functio|n ResetL|
|00001ca0| 69 6e 6b 73 28 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |inks()..|{...loca|
|00001cb0| 6c 20 4f 4e 53 50 6f 77 | 65 72 43 6f 72 65 20 43 |l ONSPow|erCore C|
|00001cc0| 6f 72 65 3b 0d 0a 0d 0a | 09 50 6f 77 65 72 4c 69 |ore;....|.PowerLi|
|00001cd0| 6e 6b 73 2e 52 65 6d 6f | 76 65 28 30 2c 50 6f 77 |nks.Remo|ve(0,Pow|
|00001ce0| 65 72 4c 69 6e 6b 73 2e | 4c 65 6e 67 74 68 29 3b |erLinks.|Length);|
|00001cf0| 0d 0a 09 43 6f 72 65 20 | 3d 20 4e 65 78 74 43 6f |...Core |= NextCo|
|00001d00| 72 65 3b 0d 0a 09 64 6f | 0d 0a 09 7b 0d 0a 09 09 |re;...do|...{....|
|00001d10| 69 66 20 28 20 53 68 6f | 75 6c 64 4c 69 6e 6b 54 |if ( Sho|uldLinkT|
|00001d20| 6f 28 43 6f 72 65 29 20 | 29 0d 0a 09 09 09 41 64 |o(Core) |).....Ad|
|00001d30| 64 50 6f 77 65 72 4c 69 | 6e 6b 28 43 6f 72 65 29 |dPowerLi|nk(Core)|
|00001d40| 3b 0d 0a 0d 0a 09 09 43 | 6f 72 65 20 3d 20 43 6f |;......C|ore = Co|
|00001d50| 72 65 2e 4e 65 78 74 43 | 6f 72 65 3b 0d 0a 09 7d |re.NextC|ore;...}|
|00001d60| 0d 0a 09 75 6e 74 69 6c | 20 28 20 43 6f 72 65 20 |...until| ( Core |
|00001d70| 3d 3d 20 4e 6f 6e 65 20 | 7c 7c 20 43 6f 72 65 20 |== None ||| Core |
|00001d80| 3d 3d 20 53 65 6c 66 20 | 29 3b 0d 0a 0d 0a 09 53 |== Self |);.....S|
|00001d90| 65 74 49 6e 69 74 69 61 | 6c 53 74 61 74 65 28 29 |etInitia|lState()|
|00001da0| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00001db0| 20 53 65 76 65 72 28 29 | 0d 0a 7b 0d 0a 09 69 66 | Sever()|..{...if|
|00001dc0| 20 28 4c 65 76 65 6c 2e | 47 61 6d 65 2e 52 65 73 | (Level.|Game.Res|
|00001dd0| 65 74 43 6f 75 6e 74 44 | 6f 77 6e 20 3c 3d 20 30 |etCountD|own <= 0|
|00001de0| 20 26 26 20 21 4c 65 76 | 65 6c 2e 47 61 6d 65 2e | && !Lev|el.Game.|
|00001df0| 62 47 61 6d 65 45 6e 64 | 65 64 29 0d 0a 09 7b 0d |bGameEnd|ed)...{.|
|00001e00| 0a 09 09 53 65 74 54 69 | 6d 65 72 28 31 2e 30 2c |...SetTi|mer(1.0,|
|00001e10| 20 54 72 75 65 29 3b 0d | 0a 09 09 69 66 20 28 44 | True);.|...if (D|
|00001e20| 65 66 65 6e 64 65 72 54 | 65 61 6d 49 6e 64 65 78 |efenderT|eamIndex|
|00001e30| 20 3d 3d 20 30 29 0d 0a | 09 09 09 42 72 6f 61 64 | == 0)..|...Broad|
|00001e40| 63 61 73 74 4c 6f 63 61 | 6c 69 7a 65 64 4d 65 73 |castLoca|lizedMes|
|00001e50| 73 61 67 65 28 63 6c 61 | 73 73 27 4f 4e 53 4f 6e |sage(cla|ss'ONSOn|
|00001e60| 73 6c 61 75 67 68 74 4d | 65 73 73 61 67 65 27 2c |slaughtM|essage',|
|00001e70| 20 32 37 29 3b 0d 0a 09 | 09 65 6c 73 65 20 69 66 | 27);...|.else if|
|00001e80| 20 28 44 65 66 65 6e 64 | 65 72 54 65 61 6d 49 6e | (Defend|erTeamIn|
|00001e90| 64 65 78 20 3d 3d 20 31 | 29 0d 0a 09 09 09 42 72 |dex == 1|).....Br|
|00001ea0| 6f 61 64 63 61 73 74 4c | 6f 63 61 6c 69 7a 65 64 |oadcastL|ocalized|
|00001eb0| 4d 65 73 73 61 67 65 28 | 63 6c 61 73 73 27 4f 4e |Message(|class'ON|
|00001ec0| 53 4f 6e 73 6c 61 75 67 | 68 74 4d 65 73 73 61 67 |SOnslaug|htMessag|
|00001ed0| 65 27 2c 20 32 38 29 3b | 0d 0a 09 7d 0d 0a 7d 0d |e', 28);|...}..}.|
|00001ee0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 55 6e 53 65 |...funct|ion UnSe|
|00001ef0| 76 65 72 28 29 0d 0a 7b | 0d 0a 20 20 20 20 53 65 |ver()..{|.. Se|
|00001f00| 74 54 69 6d 65 72 28 30 | 2c 20 66 61 6c 73 65 29 |tTimer(0|, false)|
|00001f10| 3b 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |;..}....|simulate|
|00001f20| 64 20 66 75 6e 63 74 69 | 6f 6e 20 41 64 64 50 6f |d functi|on AddPo|
|00001f30| 77 65 72 4c 69 6e 6b 28 | 4f 4e 53 50 6f 77 65 72 |werLink(|ONSPower|
|00001f40| 43 6f 72 65 20 50 43 29 | 0d 0a 7b 0d 0a 20 20 20 |Core PC)|..{.. |
|00001f50| 20 69 66 20 28 20 50 43 | 20 3d 3d 20 73 65 6c 66 | if ( PC| == self|
|00001f60| 20 7c 7c 20 4c 69 6e 6b | 65 64 54 6f 28 50 43 29 | || Link|edTo(PC)|
|00001f70| 20 29 0d 0a 20 20 20 20 | 09 72 65 74 75 72 6e 3b | ).. |.return;|
|00001f80| 0d 0a 0d 0a 20 20 20 20 | 50 6f 77 65 72 4c 69 6e |.... |PowerLin|
|00001f90| 6b 73 5b 50 6f 77 65 72 | 4c 69 6e 6b 73 2e 4c 65 |ks[Power|Links.Le|
|00001fa0| 6e 67 74 68 5d 20 3d 20 | 50 43 3b 0d 0a 09 69 66 |ngth] = |PC;...if|
|00001fb0| 20 28 20 50 43 2e 62 46 | 69 6e 61 6c 43 6f 72 65 | ( PC.bF|inalCore|
|00001fc0| 20 29 0d 0a 09 09 44 65 | 66 65 6e 73 65 50 72 69 | )....De|fensePri|
|00001fd0| 6f 72 69 74 79 20 3d 20 | 4d 61 78 28 44 65 66 65 |ority = |Max(Defe|
|00001fe0| 6e 73 65 50 72 69 6f 72 | 69 74 79 2c 20 35 29 3b |nsePrior|ity, 5);|
|00001ff0| 0d 0a 0d 0a 09 50 43 2e | 41 64 64 50 6f 77 65 72 |.....PC.|AddPower|
|00002000| 4c 69 6e 6b 28 53 65 6c | 66 29 3b 0d 0a 7d 0d 0a |Link(Sel|f);..}..|
|00002010| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 66 75 6e 63 |..simula|ted func|
|00002020| 74 69 6f 6e 20 52 65 6d | 6f 76 65 50 6f 77 65 72 |tion Rem|ovePower|
|00002030| 4c 69 6e 6b 28 4f 4e 53 | 50 6f 77 65 72 43 6f 72 |Link(ONS|PowerCor|
|00002040| 65 20 50 43 29 0d 0a 7b | 0d 0a 20 20 20 20 6c 6f |e PC)..{|.. lo|
|00002050| 63 61 6c 20 69 6e 74 20 | 69 3b 0d 0a 0d 0a 09 69 |cal int |i;.....i|
|00002060| 20 3d 20 46 69 6e 64 4e | 6f 64 65 4c 69 6e 6b 49 | = FindN|odeLinkI|
|00002070| 6e 64 65 78 28 50 43 29 | 3b 0d 0a 0d 0a 2f 2f 09 |ndex(PC)|;....//.|
|00002080| 6c 6f 67 28 4e 61 6d 65 | 40 22 52 65 6d 6f 76 65 |log(Name|@"Remove|
|00002090| 50 6f 77 65 72 4c 69 6e | 6b 20 22 40 50 43 2e 4e |PowerLin|k "@PC.N|
|000020a0| 61 6d 65 29 3b 0d 0a 09 | 69 66 20 28 20 69 20 21 |ame);...|if ( i !|
|000020b0| 3d 20 2d 31 20 29 0d 0a | 09 7b 0d 0a 09 09 50 6f |= -1 )..|.{....Po|
|000020c0| 77 65 72 4c 69 6e 6b 73 | 2e 52 65 6d 6f 76 65 28 |werLinks|.Remove(|
|000020d0| 69 2c 31 29 3b 0d 0a 09 | 09 69 66 20 28 20 62 46 |i,1);...|.if ( bF|
|000020e0| 69 6e 61 6c 43 6f 72 65 | 20 29 0d 0a 09 09 09 50 |inalCore| ).....P|
|000020f0| 43 2e 52 65 6d 6f 76 65 | 64 43 6f 72 65 4c 69 6e |C.Remove|dCoreLin|
|00002100| 6b 28 29 3b 0d 0a 2f 2f | 09 09 50 43 2e 52 65 6d |k();..//|..PC.Rem|
|00002110| 6f 76 65 50 6f 77 65 72 | 4c 69 6e 6b 28 73 65 6c |ovePower|Link(sel|
|00002120| 66 29 3b 0d 0a 09 7d 0d | 0a 7d 0d 0a 0d 0a 73 69 |f);...}.|.}....si|
|00002130| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|00002140| 20 52 65 6d 6f 76 65 64 | 43 6f 72 65 4c 69 6e 6b | Removed|CoreLink|
|00002150| 28 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |()..{...|local in|
|00002160| 74 20 69 3b 0d 0a 0d 0a | 09 66 6f 72 20 28 20 69 |t i;....|.for ( i|
|00002170| 20 3d 20 30 3b 20 69 20 | 3c 20 50 6f 77 65 72 4c | = 0; i |< PowerL|
|00002180| 69 6e 6b 73 2e 4c 65 6e | 67 74 68 3b 20 69 2b 2b |inks.Len|gth; i++|
|00002190| 20 29 0d 0a 09 09 69 66 | 20 28 20 50 6f 77 65 72 | )....if| ( Power|
|000021a0| 4c 69 6e 6b 73 5b 69 5d | 2e 62 46 69 6e 61 6c 43 |Links[i]|.bFinalC|
|000021b0| 6f 72 65 20 29 0d 0a 09 | 09 09 72 65 74 75 72 6e |ore )...|..return|
|000021c0| 3b 0d 0a 0d 0a 09 44 65 | 66 65 6e 73 65 50 72 69 |;.....De|fensePri|
|000021d0| 6f 72 69 74 79 20 3d 20 | 64 65 66 61 75 6c 74 2e |ority = |default.|
|000021e0| 44 65 66 65 6e 73 65 50 | 72 69 6f 72 69 74 79 3b |DefenseP|riority;|
|000021f0| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00002200| 20 66 75 6e 63 74 69 6f | 6e 20 70 72 6f 74 65 63 | functio|n protec|
|00002210| 74 65 64 20 62 6f 6f 6c | 20 53 68 6f 75 6c 64 4c |ted bool| ShouldL|
|00002220| 69 6e 6b 54 6f 28 20 4f | 4e 53 50 6f 77 65 72 43 |inkTo( O|NSPowerC|
|00002230| 6f 72 65 20 4e 6f 64 65 | 20 29 0d 0a 7b 0d 0a 09 |ore Node| )..{...|
|00002240| 6c 6f 63 61 6c 20 69 6e | 74 20 69 3b 0d 0a 0d 0a |local in|t i;....|
|00002250| 09 69 66 20 28 20 4e 6f | 64 65 20 3d 3d 20 4e 6f |.if ( No|de == No|
|00002260| 6e 65 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 66 |ne )....|return f|
|00002270| 61 6c 73 65 3b 0d 0a 0d | 0a 20 20 20 20 66 6f 72 |alse;...|. for|
|00002280| 20 28 69 3d 30 3b 20 69 | 3c 4c 69 6e 6b 65 64 4e | (i=0; i|<LinkedN|
|00002290| 6f 64 65 73 2e 4c 65 6e | 67 74 68 3b 20 69 2b 2b |odes.Len|gth; i++|
|000022a0| 29 0d 0a 20 20 20 20 09 | 69 66 20 28 20 4e 6f 64 |).. .|if ( Nod|
|000022b0| 65 2e 4e 61 6d 65 20 3d | 3d 20 4c 69 6e 6b 65 64 |e.Name =|= Linked|
|000022c0| 4e 6f 64 65 73 5b 69 5d | 20 29 0d 0a 20 20 20 20 |Nodes[i]| ).. |
|000022d0| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|000022e0| 0d 0a 20 20 20 20 72 65 | 74 75 72 6e 20 66 61 6c |.. re|turn fal|
|000022f0| 73 65 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |se;..}..|..simula|
|00002300| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |ted func|tion boo|
|00002310| 6c 20 4c 69 6e 6b 65 64 | 54 6f 28 4f 4e 53 50 6f |l Linked|To(ONSPo|
|00002320| 77 65 72 43 6f 72 65 20 | 50 43 29 0d 0a 7b 0d 0a |werCore |PC)..{..|
|00002330| 09 72 65 74 75 72 6e 20 | 46 69 6e 64 4e 6f 64 65 |.return |FindNode|
|00002340| 4c 69 6e 6b 49 6e 64 65 | 78 28 50 43 29 20 21 3d |LinkInde|x(PC) !=|
|00002350| 20 2d 31 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c | -1;..}.|...simul|
|00002360| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |ated fun|ction in|
|00002370| 74 20 46 69 6e 64 4e 6f | 64 65 4c 69 6e 6b 49 6e |t FindNo|deLinkIn|
|00002380| 64 65 78 28 20 4f 4e 53 | 50 6f 77 65 72 43 6f 72 |dex( ONS|PowerCor|
|00002390| 65 20 4e 6f 64 65 20 29 | 0d 0a 7b 0d 0a 09 6c 6f |e Node )|..{...lo|
|000023a0| 63 61 6c 20 69 6e 74 20 | 69 3b 0d 0a 0d 0a 09 69 |cal int |i;.....i|
|000023b0| 66 20 28 20 4e 6f 64 65 | 20 3d 3d 20 4e 6f 6e 65 |f ( Node| == None|
|000023c0| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 2d 31 3b | )....re|turn -1;|
|000023d0| 0d 0a 0d 0a 09 66 6f 72 | 20 28 20 69 20 3d 20 30 |.....for| ( i = 0|
|000023e0| 3b 20 69 20 3c 20 50 6f | 77 65 72 4c 69 6e 6b 73 |; i < Po|werLinks|
|000023f0| 2e 4c 65 6e 67 74 68 3b | 20 69 2b 2b 20 29 0d 0a |.Length;| i++ )..|
|00002400| 09 09 69 66 20 28 20 50 | 6f 77 65 72 4c 69 6e 6b |..if ( P|owerLink|
|00002410| 73 5b 69 5d 20 3d 3d 20 | 4e 6f 64 65 20 29 0d 0a |s[i] == |Node )..|
|00002420| 09 09 09 72 65 74 75 72 | 6e 20 69 3b 0d 0a 0d 0a |...retur|n i;....|
|00002430| 09 72 65 74 75 72 6e 20 | 2d 31 3b 0d 0a 7d 0d 0a |.return |-1;..}..|
|00002440| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 44 69 73 61 62 |..functi|on Disab|
|00002450| 6c 65 4f 62 6a 65 63 74 | 69 76 65 28 50 61 77 6e |leObject|ive(Pawn|
|00002460| 20 49 6e 73 74 69 67 61 | 74 6f 72 29 0d 0a 7b 0d | Instiga|tor)..{.|
|00002470| 0a 09 6c 6f 63 61 6c 20 | 50 6c 61 79 65 72 52 65 |..local |PlayerRe|
|00002480| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 09 50 52 |plicatio|nInfo.PR|
|00002490| 49 3b 0d 0a 0d 0a 09 69 | 66 20 28 43 6f 72 65 53 |I;.....i|f (CoreS|
|000024a0| 74 61 67 65 20 21 3d 20 | 35 29 0d 0a 09 7b 0d 0a |tage != |5)...{..|
|000024b0| 09 09 69 66 20 28 20 49 | 6e 73 74 69 67 61 74 6f |..if ( I|nstigato|
|000024c0| 72 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 09 |r != Non|e ).....|
|000024d0| 50 52 49 20 3d 20 49 6e | 73 74 69 67 61 74 6f 72 |PRI = In|stigator|
|000024e0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|000024f0| 6f 6e 49 6e 66 6f 3b 0d | 0a 09 09 65 6c 73 65 20 |onInfo;.|...else |
|00002500| 69 66 20 28 20 44 65 6c | 61 79 65 64 44 61 6d 61 |if ( Del|ayedDama|
|00002510| 67 65 49 6e 73 74 69 67 | 61 74 6f 72 43 6f 6e 74 |geInstig|atorCont|
|00002520| 72 6f 6c 6c 65 72 20 21 | 3d 20 4e 6f 6e 65 20 29 |roller !|= None )|
|00002530| 0d 0a 09 09 09 50 52 49 | 20 3d 20 44 65 6c 61 79 |.....PRI| = Delay|
|00002540| 65 64 44 61 6d 61 67 65 | 49 6e 73 74 69 67 61 74 |edDamage|Instigat|
|00002550| 6f 72 43 6f 6e 74 72 6f | 6c 6c 65 72 2e 50 6c 61 |orContro|ller.Pla|
|00002560| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00002570| 66 6f 3b 0d 0a 0d 0a 09 | 09 42 72 6f 61 64 63 61 |fo;.....|.Broadca|
|00002580| 73 74 4c 6f 63 61 6c 69 | 7a 65 64 4d 65 73 73 61 |stLocali|zedMessa|
|00002590| 67 65 28 63 6c 61 73 73 | 27 4f 4e 53 4f 6e 73 6c |ge(class|'ONSOnsl|
|000025a0| 61 75 67 68 74 4d 65 73 | 73 61 67 65 27 2c 20 44 |aughtMes|sage', D|
|000025b0| 65 73 74 72 75 63 74 69 | 6f 6e 4d 65 73 73 61 67 |estructi|onMessag|
|000025c0| 65 49 6e 64 65 78 20 2b | 20 44 65 66 65 6e 64 65 |eIndex +| Defende|
|000025d0| 72 54 65 61 6d 49 6e 64 | 65 78 2c 20 50 52 49 29 |rTeamInd|ex, PRI)|
|000025e0| 3b 0d 0a 0d 0a 09 09 69 | 66 20 28 20 62 41 63 63 |;......i|f ( bAcc|
|000025f0| 72 75 65 50 6f 69 6e 74 | 73 20 29 0d 0a 09 09 09 |ruePoint|s ).....|
|00002600| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 53 63 6f 72 65 |Level.Ga|me.Score|
|00002610| 4f 62 6a 65 63 74 69 76 | 65 28 20 50 52 49 2c 20 |Objectiv|e( PRI, |
|00002620| 30 20 29 3b 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 09 |0 );....|else....|
|00002630| 7b 0d 0a 09 09 09 69 66 | 20 28 43 6f 72 65 53 74 |{.....if| (CoreSt|
|00002640| 61 67 65 20 3d 3d 20 30 | 29 0d 0a 09 09 09 09 53 |age == 0|)......S|
|00002650| 68 61 72 65 53 63 6f 72 | 65 28 53 63 6f 72 65 2c |hareScor|e(Score,|
|00002660| 20 44 65 73 74 72 6f 79 | 65 64 45 76 65 6e 74 5b | Destroy|edEvent[|
|00002670| 44 65 66 65 6e 64 65 72 | 54 65 61 6d 49 6e 64 65 |Defender|TeamInde|
|00002680| 78 5d 29 3b 0d 0a 09 09 | 09 65 6c 73 65 0d 0a 09 |x]);....|.else...|
|00002690| 09 09 09 53 68 61 72 65 | 53 63 6f 72 65 28 53 63 |...Share|Score(Sc|
|000026a0| 6f 72 65 2c 20 44 65 73 | 74 72 6f 79 65 64 45 76 |ore, Des|troyedEv|
|000026b0| 65 6e 74 5b 32 2b 44 65 | 66 65 6e 64 65 72 54 65 |ent[2+De|fenderTe|
|000026c0| 61 6d 49 6e 64 65 78 5d | 29 3b 0d 0a 09 09 7d 0d |amIndex]|);....}.|
|000026d0| 0a 09 7d 0d 0a 0d 0a 09 | 43 6f 72 65 53 74 61 67 |..}.....|CoreStag|
|000026e0| 65 20 3d 20 31 3b 0d 0a | 09 54 72 69 67 67 65 72 |e = 1;..|.Trigger|
|000026f0| 45 76 65 6e 74 28 44 65 | 73 74 72 6f 79 65 64 45 |Event(De|stroyedE|
|00002700| 76 65 6e 74 4e 61 6d 65 | 2c 20 73 65 6c 66 2c 20 |ventName|, self, |
|00002710| 4e 6f 6e 65 29 3b 0d 0a | 0d 0a 09 50 6f 77 65 72 |None);..|...Power|
|00002720| 43 6f 72 65 44 65 73 74 | 72 6f 79 65 64 28 29 3b |CoreDest|royed();|
|00002730| 0d 0a 0d 0a 09 55 6e 72 | 65 61 6c 4d 50 47 61 6d |.....Unr|ealMPGam|
|00002740| 65 49 6e 66 6f 28 4c 65 | 76 65 6c 2e 47 61 6d 65 |eInfo(Le|vel.Game|
|00002750| 29 2e 4f 62 6a 65 63 74 | 69 76 65 44 69 73 61 62 |).Object|iveDisab|
|00002760| 6c 65 64 28 53 65 6c 66 | 29 3b 0d 0a 09 55 6e 72 |led(Self|);...Unr|
|00002770| 65 61 6c 4d 50 47 61 6d | 65 49 6e 66 6f 28 4c 65 |ealMPGam|eInfo(Le|
|00002780| 76 65 6c 2e 47 61 6d 65 | 29 2e 46 69 6e 64 4e 65 |vel.Game|).FindNe|
|00002790| 77 4f 62 6a 65 63 74 69 | 76 65 73 28 53 65 6c 66 |wObjecti|ves(Self|
|000027a0| 29 3b 0d 0a 09 54 72 69 | 67 67 65 72 45 76 65 6e |);...Tri|ggerEven|
|000027b0| 74 28 45 76 65 6e 74 2c | 20 73 65 6c 66 2c 20 49 |t(Event,| self, I|
|000027c0| 6e 73 74 69 67 61 74 6f | 72 29 3b 0d 0a 7d 0d 0a |nstigato|r);..}..|
|000027d0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 54 61 6b 65 44 |..functi|on TakeD|
|000027e0| 61 6d 61 67 65 28 69 6e | 74 20 44 61 6d 61 67 65 |amage(in|t Damage|
|000027f0| 2c 20 50 61 77 6e 20 69 | 6e 73 74 69 67 61 74 65 |, Pawn i|nstigate|
|00002800| 64 42 79 2c 20 56 65 63 | 74 6f 72 20 68 69 74 6c |dBy, Vec|tor hitl|
|00002810| 6f 63 61 74 69 6f 6e 2c | 20 56 65 63 74 6f 72 20 |ocation,| Vector |
|00002820| 6d 6f 6d 65 6e 74 75 6d | 2c 20 63 6c 61 73 73 3c |momentum|, class<|
|00002830| 44 61 6d 61 67 65 54 79 | 70 65 3e 20 64 61 6d 61 |DamageTy|pe> dama|
|00002840| 67 65 54 79 70 65 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |geType).|.{...loc|
|00002850| 61 6c 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 49 6e |al Contr|oller In|
|00002860| 73 74 69 67 61 74 6f 72 | 43 6f 6e 74 72 6f 6c 6c |stigator|Controll|
|00002870| 65 72 3b 0d 0a 0d 0a 09 | 2f 2f 69 66 20 28 69 6e |er;.....|//if (in|
|00002880| 73 74 69 67 61 74 65 64 | 42 79 20 21 3d 20 4e 6f |stigated|By != No|
|00002890| 6e 65 20 26 26 20 53 63 | 72 69 70 74 65 64 43 6f |ne && Sc|riptedCo|
|000028a0| 6e 74 72 6f 6c 6c 65 72 | 28 69 6e 73 74 69 67 61 |ntroller|(instiga|
|000028b0| 74 65 64 42 79 2e 43 6f | 6e 74 72 6f 6c 6c 65 72 |tedBy.Co|ntroller|
|000028c0| 29 20 21 3d 20 4e 6f 6e | 65 29 0d 0a 09 2f 2f 09 |) != Non|e)...//.|
|000028d0| 4c 6f 67 28 22 53 43 52 | 49 50 54 45 44 20 44 41 |Log("SCR|IPTED DA|
|000028e0| 4d 41 47 45 3a 22 40 44 | 61 6d 61 67 65 40 22 43 |MAGE:"@D|amage@"C|
|000028f0| 4f 52 45 53 54 41 47 45 | 3a 22 40 43 6f 72 65 53 |ORESTAGE|:"@CoreS|
|00002900| 74 61 67 65 40 22 48 45 | 41 4c 54 48 3a 22 40 48 |tage@"HE|ALTH:"@H|
|00002910| 65 61 6c 74 68 40 22 50 | 4f 57 45 52 45 44 42 59 |ealth@"P|OWEREDBY|
|00002920| 49 4e 53 54 49 47 41 54 | 45 44 3a 22 40 50 6f 77 |INSTIGAT|ED:"@Pow|
|00002930| 65 72 65 64 42 79 28 69 | 6e 73 74 69 67 61 74 65 |eredBy(i|nstigate|
|00002940| 64 42 79 2e 47 65 74 54 | 65 61 6d 4e 75 6d 28 29 |dBy.GetT|eamNum()|
|00002950| 29 29 3b 0d 0a 0d 0a 09 | 69 66 20 28 43 6f 72 65 |));.....|if (Core|
|00002960| 53 74 61 67 65 20 3d 3d | 20 34 20 7c 7c 20 43 6f |Stage ==| 4 || Co|
|00002970| 72 65 53 74 61 67 65 20 | 3d 3d 20 31 20 7c 7c 20 |reStage |== 1 || |
|00002980| 44 61 6d 61 67 65 20 3c | 3d 20 30 20 7c 7c 20 4c |Damage <|= 0 || L|
|00002990| 65 76 65 6c 2e 47 61 6d | 65 2e 52 65 73 65 74 43 |evel.Gam|e.ResetC|
|000029a0| 6f 75 6e 74 64 6f 77 6e | 20 3e 20 30 20 7c 7c 20 |ountdown| > 0 || |
|000029b0| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 62 47 61 6d 65 |Level.Ga|me.bGame|
|000029c0| 45 6e 64 65 64 29 0d 0a | 09 09 72 65 74 75 72 6e |Ended)..|..return|
|000029d0| 3b 0d 0a 0d 0a 09 69 66 | 20 28 64 61 6d 61 67 65 |;.....if| (damage|
|000029e0| 54 79 70 65 20 3d 3d 20 | 4e 6f 6e 65 20 7c 7c 20 |Type == |None || |
|000029f0| 21 64 61 6d 61 67 65 54 | 79 70 65 2e 64 65 66 61 |!damageT|ype.defa|
|00002a00| 75 6c 74 2e 62 44 65 6c | 61 79 65 64 44 61 6d 61 |ult.bDel|ayedDama|
|00002a10| 67 65 29 0d 0a 09 09 44 | 65 6c 61 79 65 64 44 61 |ge)....D|elayedDa|
|00002a20| 6d 61 67 65 49 6e 73 74 | 69 67 61 74 6f 72 43 6f |mageInst|igatorCo|
|00002a30| 6e 74 72 6f 6c 6c 65 72 | 20 3d 20 4e 6f 6e 65 3b |ntroller| = None;|
|00002a40| 0d 0a 09 69 66 20 28 69 | 6e 73 74 69 67 61 74 65 |...if (i|nstigate|
|00002a50| 64 42 79 20 21 3d 20 4e | 6f 6e 65 20 26 26 20 69 |dBy != N|one && i|
|00002a60| 6e 73 74 69 67 61 74 65 | 64 42 79 2e 43 6f 6e 74 |nstigate|dBy.Cont|
|00002a70| 72 6f 6c 6c 65 72 20 21 | 3d 20 4e 6f 6e 65 29 0d |roller !|= None).|
|00002a80| 0a 09 09 49 6e 73 74 69 | 67 61 74 6f 72 43 6f 6e |...Insti|gatorCon|
|00002a90| 74 72 6f 6c 6c 65 72 20 | 3d 20 69 6e 73 74 69 67 |troller |= instig|
|00002aa0| 61 74 65 64 42 79 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |atedBy.C|ontrolle|
|00002ab0| 72 3b 0d 0a 09 65 6c 73 | 65 0d 0a 09 09 49 6e 73 |r;...els|e....Ins|
|00002ac0| 74 69 67 61 74 6f 72 43 | 6f 6e 74 72 6f 6c 6c 65 |tigatorC|ontrolle|
|00002ad0| 72 20 3d 20 44 65 6c 61 | 79 65 64 44 61 6d 61 67 |r = Dela|yedDamag|
|00002ae0| 65 49 6e 73 74 69 67 61 | 74 6f 72 43 6f 6e 74 72 |eInstiga|torContr|
|00002af0| 6f 6c 6c 65 72 3b 0d 0a | 0d 0a 09 69 66 20 28 49 |oller;..|...if (I|
|00002b00| 6e 73 74 69 67 61 74 6f | 72 43 6f 6e 74 72 6f 6c |nstigato|rControl|
|00002b10| 6c 65 72 20 3d 3d 20 4e | 6f 6e 65 20 26 26 20 64 |ler == N|one && d|
|00002b20| 61 6d 61 67 65 54 79 70 | 65 20 21 3d 20 4e 6f 6e |amageTyp|e != Non|
|00002b30| 65 29 0d 0a 09 09 72 65 | 74 75 72 6e 3b 0d 0a 0d |e)....re|turn;...|
|00002b40| 0a 20 20 20 20 69 66 20 | 28 64 61 6d 61 67 65 54 |. if |(damageT|
|00002b50| 79 70 65 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 |ype != N|one)....|
|00002b60| 44 61 6d 61 67 65 20 2a | 3d 20 64 61 6d 61 67 65 |Damage *|= damage|
|00002b70| 54 79 70 65 2e 64 65 66 | 61 75 6c 74 2e 56 65 68 |Type.def|ault.Veh|
|00002b80| 69 63 6c 65 44 61 6d 61 | 67 65 53 63 61 6c 69 6e |icleDama|geScalin|
|00002b90| 67 3b 0d 0a 20 20 20 20 | 69 66 20 28 69 6e 73 74 |g;.. |if (inst|
|00002ba0| 69 67 61 74 65 64 42 79 | 20 21 3d 20 4e 6f 6e 65 |igatedBy| != None|
|00002bb0| 29 0d 0a 20 20 20 20 7b | 0d 0a 20 20 20 20 09 69 |).. {|.. .i|
|00002bc0| 66 20 28 69 6e 73 74 69 | 67 61 74 65 64 42 79 2e |f (insti|gatedBy.|
|00002bd0| 48 61 73 55 44 61 6d 61 | 67 65 28 29 29 0d 0a 09 |HasUDama|ge())...|
|00002be0| 09 44 61 6d 61 67 65 20 | 2a 3d 20 32 3b 0d 0a 09 |.Damage |*= 2;...|
|00002bf0| 09 44 61 6d 61 67 65 20 | 2a 3d 20 69 6e 73 74 69 |.Damage |*= insti|
|00002c00| 67 61 74 65 64 42 79 2e | 44 61 6d 61 67 65 53 63 |gatedBy.|DamageSc|
|00002c10| 61 6c 69 6e 67 3b 0d 0a | 20 20 20 20 7d 0d 0a 0d |aling;..| }...|
|00002c20| 0a 20 20 20 20 69 66 20 | 28 20 49 6e 73 74 69 67 |. if |( Instig|
|00002c30| 61 74 6f 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 3d |atorCont|roller =|
|00002c40| 3d 20 4e 6f 6e 65 20 7c | 7c 20 28 49 6e 73 74 69 |= None ||| (Insti|
|00002c50| 67 61 74 6f 72 43 6f 6e | 74 72 6f 6c 6c 65 72 2e |gatorCon|troller.|
|00002c60| 47 65 74 54 65 61 6d 4e | 75 6d 28 29 20 21 3d 20 |GetTeamN|um() != |
|00002c70| 44 65 66 65 6e 64 65 72 | 54 65 61 6d 49 6e 64 65 |Defender|TeamInde|
|00002c80| 78 20 26 26 20 50 6f 77 | 65 72 65 64 42 79 28 49 |x && Pow|eredBy(I|
|00002c90| 6e 73 74 69 67 61 74 6f | 72 43 6f 6e 74 72 6f 6c |nstigato|rControl|
|00002ca0| 6c 65 72 2e 47 65 74 54 | 65 61 6d 4e 75 6d 28 29 |ler.GetT|eamNum()|
|00002cb0| 29 29 20 29 0d 0a 20 20 | 20 20 7b 0d 0a 09 09 4e |)) ).. | {....N|
|00002cc0| 65 74 55 70 64 61 74 65 | 54 69 6d 65 20 3d 20 4c |etUpdate|Time = L|
|00002cd0| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00002ce0| 20 2d 20 31 3b 0d 0a 20 | 20 20 20 09 41 63 63 75 | - 1;.. | .Accu|
|00002cf0| 6d 75 6c 61 74 65 64 44 | 61 6d 61 67 65 20 2b 3d |mulatedD|amage +=|
|00002d00| 20 44 61 6d 61 67 65 3b | 0d 0a 20 20 20 20 09 69 | Damage;|.. .i|
|00002d10| 66 20 28 28 44 61 6d 61 | 67 65 45 76 65 6e 74 54 |f ((Dama|geEventT|
|00002d20| 68 72 65 73 68 6f 6c 64 | 20 3e 20 30 29 20 26 26 |hreshold| > 0) &&|
|00002d30| 20 28 41 63 63 75 6d 75 | 6c 61 74 65 64 44 61 6d | (Accumu|latedDam|
|00002d40| 61 67 65 20 3e 3d 20 44 | 61 6d 61 67 65 45 76 65 |age >= D|amageEve|
|00002d50| 6e 74 54 68 72 65 73 68 | 6f 6c 64 29 29 0d 0a 20 |ntThresh|old)).. |
|00002d60| 20 20 20 09 7b 0d 0a 20 | 20 20 20 09 09 54 72 69 | .{.. | ..Tri|
|00002d70| 67 67 65 72 45 76 65 6e | 74 28 54 61 6b 65 44 61 |ggerEven|t(TakeDa|
|00002d80| 6d 61 67 65 45 76 65 6e | 74 2c 73 65 6c 66 2c 20 |mageEven|t,self, |
|00002d90| 49 6e 73 74 69 67 61 74 | 65 64 42 79 29 3b 0d 0a |Instigat|edBy);..|
|00002da0| 20 20 20 20 09 09 41 63 | 63 75 6d 75 6c 61 74 65 | ..Ac|cumulate|
|00002db0| 64 44 61 6d 61 67 65 20 | 3d 20 30 3b 0d 0a 20 20 |dDamage |= 0;.. |
|00002dc0| 20 20 09 7d 0d 0a 09 69 | 66 20 28 49 6e 73 74 69 | .}...i|f (Insti|
|00002dd0| 67 61 74 6f 72 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |gatorCon|troller |
|00002de0| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 09 7b 0d 0a 09 09 |!= None)|...{....|
|00002df0| 4c 61 73 74 44 61 6d 61 | 67 65 64 42 79 20 3d 20 |LastDama|gedBy = |
|00002e00| 49 6e 73 74 69 67 61 74 | 6f 72 43 6f 6e 74 72 6f |Instigat|orContro|
|00002e10| 6c 6c 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ller.Pla|yerRepli|
|00002e20| 63 61 74 69 6f 6e 49 6e | 66 6f 3b 0d 0a 09 09 4c |cationIn|fo;....L|
|00002e30| 61 73 74 41 74 74 61 63 | 6b 65 72 20 3d 20 69 6e |astAttac|ker = in|
|00002e40| 73 74 69 67 61 74 65 64 | 42 79 3b 0d 0a 09 09 41 |stigated|By;....A|
|00002e50| 64 64 53 63 6f 72 65 72 | 28 49 6e 73 74 69 67 61 |ddScorer|(Instiga|
|00002e60| 74 6f 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 2c 20 46 |torContr|oller, F|
|00002e70| 4d 69 6e 28 48 65 61 6c | 74 68 2c 20 44 61 6d 61 |Min(Heal|th, Dama|
|00002e80| 67 65 29 20 2f 20 44 61 | 6d 61 67 65 43 61 70 61 |ge) / Da|mageCapa|
|00002e90| 63 69 74 79 29 3b 0d 0a | 09 7d 0d 0a 09 69 66 20 |city);..|.}...if |
|00002ea0| 28 20 62 46 69 6e 61 6c | 43 6f 72 65 20 29 0d 0a |( bFinal|Core )..|
|00002eb0| 09 09 4e 65 74 55 70 64 | 61 74 65 54 69 6d 65 20 |..NetUpd|ateTime |
|00002ec0| 3d 20 4c 65 76 65 6c 2e | 54 69 6d 65 53 65 63 6f |= Level.|TimeSeco|
|00002ed0| 6e 64 73 20 2d 20 31 3b | 0d 0a 20 20 20 20 48 65 |nds - 1;|.. He|
|00002ee0| 61 6c 74 68 20 2d 3d 20 | 44 61 6d 61 67 65 3b 0d |alth -= |Damage;.|
|00002ef0| 0a 20 20 20 20 69 66 20 | 28 20 48 65 61 6c 74 68 |. if |( Health|
|00002f00| 20 3c 20 30 20 29 0d 0a | 20 20 20 20 09 44 69 73 | < 0 )..| .Dis|
|00002f10| 61 62 6c 65 4f 62 6a 65 | 63 74 69 76 65 28 69 6e |ableObje|ctive(in|
|00002f20| 73 74 69 67 61 74 65 64 | 42 79 29 3b 0d 0a 09 65 |stigated|By);...e|
|00002f30| 6c 73 65 20 69 66 20 28 | 64 61 6d 61 67 65 54 79 |lse if (|damageTy|
|00002f40| 70 65 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 09 7b 0d |pe != No|ne)...{.|
|00002f50| 0a 09 09 2f 2f 61 74 74 | 61 63 6b 20 6e 6f 74 69 |...//att|ack noti|
|00002f60| 66 69 63 61 74 69 6f 6e | 0d 0a 09 09 69 66 20 28 |fication|....if (|
|00002f70| 4c 61 73 74 41 74 74 61 | 63 6b 4d 65 73 73 61 67 |LastAtta|ckMessag|
|00002f80| 65 54 69 6d 65 20 2b 20 | 31 20 3c 20 4c 65 76 65 |eTime + |1 < Leve|
|00002f90| 6c 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 29 0d 0a |l.TimeSe|conds)..|
|00002fa0| 09 09 7b 0d 0a 09 09 09 | 69 66 20 28 62 46 69 6e |..{.....|if (bFin|
|00002fb0| 61 6c 43 6f 72 65 29 0d | 0a 09 09 09 7b 0d 0a 09 |alCore).|....{...|
|00002fc0| 09 09 09 69 66 20 28 66 | 6c 6f 61 74 28 48 65 61 |...if (f|loat(Hea|
|00002fd0| 6c 74 68 29 20 2f 20 44 | 61 6d 61 67 65 43 61 70 |lth) / D|amageCap|
|00002fe0| 61 63 69 74 79 20 3e 20 | 30 2e 35 35 29 0d 0a 09 |acity > |0.55)...|
|00002ff0| 09 09 09 09 42 72 6f 61 | 64 63 61 73 74 4c 6f 63 |....Broa|dcastLoc|
|00003000| 61 6c 69 7a 65 64 4d 65 | 73 73 61 67 65 28 63 6c |alizedMe|ssage(cl|
|00003010| 61 73 73 27 4f 4e 53 4f | 6e 73 6c 61 75 67 68 74 |ass'ONSO|nslaught|
|00003020| 4d 65 73 73 61 67 65 27 | 2c 20 37 20 2b 20 44 65 |Message'|, 7 + De|
|00003030| 66 65 6e 64 65 72 54 65 | 61 6d 49 6e 64 65 78 2c |fenderTe|amIndex,|
|00003040| 2c 2c 20 73 65 6c 66 29 | 3b 0d 0a 09 09 09 09 65 |,, self)|;......e|
|00003050| 6c 73 65 20 69 66 20 28 | 66 6c 6f 61 74 28 48 65 |lse if (|float(He|
|00003060| 61 6c 74 68 29 20 2f 20 | 44 61 6d 61 67 65 43 61 |alth) / |DamageCa|
|00003070| 70 61 63 69 74 79 20 3e | 20 30 2e 34 35 29 0d 0a |pacity >| 0.45)..|
|00003080| 09 09 09 09 09 42 72 6f | 61 64 63 61 73 74 4c 6f |.....Bro|adcastLo|
|00003090| 63 61 6c 69 7a 65 64 4d | 65 73 73 61 67 65 28 63 |calizedM|essage(c|
|000030a0| 6c 61 73 73 27 4f 4e 53 | 4f 6e 73 6c 61 75 67 68 |lass'ONS|Onslaugh|
|000030b0| 74 4d 65 73 73 61 67 65 | 27 2c 20 32 35 20 2b 20 |tMessage|', 25 + |
|000030c0| 44 65 66 65 6e 64 65 72 | 54 65 61 6d 49 6e 64 65 |Defender|TeamInde|
|000030d0| 78 2c 2c 2c 20 73 65 6c | 66 29 3b 0d 0a 09 09 09 |x,,, sel|f);.....|
|000030e0| 09 65 6c 73 65 0d 0a 09 | 09 09 09 09 42 72 6f 61 |.else...|....Broa|
|000030f0| 64 63 61 73 74 4c 6f 63 | 61 6c 69 7a 65 64 4d 65 |dcastLoc|alizedMe|
|00003100| 73 73 61 67 65 28 63 6c | 61 73 73 27 4f 4e 53 4f |ssage(cl|ass'ONSO|
|00003110| 6e 73 6c 61 75 67 68 74 | 4d 65 73 73 61 67 65 27 |nslaught|Message'|
|00003120| 2c 20 31 38 20 2b 20 44 | 65 66 65 6e 64 65 72 54 |, 18 + D|efenderT|
|00003130| 65 61 6d 49 6e 64 65 78 | 2c 2c 2c 20 73 65 6c 66 |eamIndex|,,, self|
|00003140| 29 3b 0d 0a 09 09 09 7d | 0d 0a 09 09 09 65 6c 73 |);.....}|.....els|
|00003150| 65 0d 0a 09 09 09 09 42 | 72 6f 61 64 63 61 73 74 |e......B|roadcast|
|00003160| 4c 6f 63 61 6c 69 7a 65 | 64 4d 65 73 73 61 67 65 |Localize|dMessage|
|00003170| 28 63 6c 61 73 73 27 4f | 4e 53 4f 6e 73 6c 61 75 |(class'O|NSOnslau|
|00003180| 67 68 74 4d 65 73 73 61 | 67 65 27 2c 20 39 20 2b |ghtMessa|ge', 9 +|
|00003190| 20 44 65 66 65 6e 64 65 | 72 54 65 61 6d 49 6e 64 | Defende|rTeamInd|
|000031a0| 65 78 2c 2c 2c 20 73 65 | 6c 66 29 3b 0d 0a 09 09 |ex,,, se|lf);....|
|000031b0| 09 55 6e 72 65 61 6c 54 | 65 61 6d 49 6e 66 6f 28 |.UnrealT|eamInfo(|
|000031c0| 4c 65 76 65 6c 2e 47 52 | 49 2e 54 65 61 6d 73 5b |Level.GR|I.Teams[|
|000031d0| 44 65 66 65 6e 64 65 72 | 54 65 61 6d 49 6e 64 65 |Defender|TeamInde|
|000031e0| 78 5d 29 2e 41 49 2e 43 | 72 69 74 69 63 61 6c 4f |x]).AI.C|riticalO|
|000031f0| 62 6a 65 63 74 69 76 65 | 57 61 72 6e 69 6e 67 28 |bjective|Warning(|
|00003200| 73 65 6c 66 2c 20 69 6e | 73 74 69 67 61 74 65 64 |self, in|stigated|
|00003210| 42 79 29 3b 0d 0a 09 09 | 09 4c 61 73 74 41 74 74 |By);....|.LastAtt|
|00003220| 61 63 6b 4d 65 73 73 61 | 67 65 54 69 6d 65 20 3d |ackMessa|geTime =|
|00003230| 20 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e | Level.T|imeSecon|
|00003240| 64 73 3b 0d 0a 09 09 7d | 0d 0a 09 09 4c 61 73 74 |ds;....}|....Last|
|00003250| 41 74 74 61 63 6b 54 69 | 6d 65 20 3d 20 4c 65 76 |AttackTi|me = Lev|
|00003260| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 3b 0d |el.TimeS|econds;.|
|00003270| 0a 09 7d 0d 0a 20 20 20 | 20 7d 0d 0a 20 20 20 20 |..}.. | }.. |
|00003280| 65 6c 73 65 20 69 66 20 | 28 50 6c 61 79 65 72 43 |else if |(PlayerC|
|00003290| 6f 6e 74 72 6f 6c 6c 65 | 72 28 49 6e 73 74 69 67 |ontrolle|r(Instig|
|000032a0| 61 74 6f 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 29 20 |atorCont|roller) |
|000032b0| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 20 20 20 20 7b 0d |!= None)|.. {.|
|000032c0| 0a 20 20 20 20 09 69 66 | 20 28 49 6e 73 74 69 67 |. .if| (Instig|
|000032d0| 61 74 6f 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 2e 47 |atorCont|roller.G|
|000032e0| 65 74 54 65 61 6d 4e 75 | 6d 28 29 20 21 3d 20 44 |etTeamNu|m() != D|
|000032f0| 65 66 65 6e 64 65 72 54 | 65 61 6d 49 6e 64 65 78 |efenderT|eamIndex|
|00003300| 29 0d 0a 09 20 20 20 20 | 20 20 20 20 50 6c 61 79 |)... | Play|
|00003310| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 28 49 6e 73 |erContro|ller(Ins|
|00003320| 74 69 67 61 74 6f 72 43 | 6f 6e 74 72 6f 6c 6c 65 |tigatorC|ontrolle|
|00003330| 72 29 2e 52 65 63 65 69 | 76 65 4c 6f 63 61 6c 69 |r).Recei|veLocali|
|00003340| 7a 65 64 4d 65 73 73 61 | 67 65 28 63 6c 61 73 73 |zedMessa|ge(class|
|00003350| 27 4f 4e 53 4f 6e 73 6c | 61 75 67 68 74 4d 65 73 |'ONSOnsl|aughtMes|
|00003360| 73 61 67 65 27 2c 20 35 | 29 3b 0d 0a 09 09 65 6c |sage', 5|);....el|
|00003370| 73 65 20 69 66 20 28 62 | 46 69 6e 61 6c 43 6f 72 |se if (b|FinalCor|
|00003380| 65 20 26 26 20 44 61 6d | 61 67 65 54 79 70 65 20 |e && Dam|ageType |
|00003390| 3d 3d 20 63 6c 61 73 73 | 27 44 61 6d 54 79 70 65 |== class|'DamType|
|000033a0| 4c 69 6e 6b 53 68 61 66 | 74 27 29 0d 0a 09 09 09 |LinkShaf|t').....|
|000033b0| 50 6c 61 79 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |PlayerCo|ntroller|
|000033c0| 28 49 6e 73 74 69 67 61 | 74 6f 72 43 6f 6e 74 72 |(Instiga|torContr|
|000033d0| 6f 6c 6c 65 72 29 2e 52 | 65 63 65 69 76 65 4c 6f |oller).R|eceiveLo|
|000033e0| 63 61 6c 69 7a 65 64 4d | 65 73 73 61 67 65 28 63 |calizedM|essage(c|
|000033f0| 6c 61 73 73 27 4f 4e 53 | 4f 6e 73 6c 61 75 67 68 |lass'ONS|Onslaugh|
|00003400| 74 4d 65 73 73 61 67 65 | 27 2c 20 33 30 29 3b 0d |tMessage|', 30);.|
|00003410| 0a 20 20 20 20 7d 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |. }..|}....fun|
|00003420| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 48 65 61 6c 44 |ction bo|ol HealD|
|00003430| 61 6d 61 67 65 28 69 6e | 74 20 41 6d 6f 75 6e 74 |amage(in|t Amount|
|00003440| 2c 20 43 6f 6e 74 72 6f | 6c 6c 65 72 20 48 65 61 |, Contro|ller Hea|
|00003450| 6c 65 72 2c 20 63 6c 61 | 73 73 3c 44 61 6d 61 67 |ler, cla|ss<Damag|
|00003460| 65 54 79 70 65 3e 20 44 | 61 6d 61 67 65 54 79 70 |eType> D|amageTyp|
|00003470| 65 29 0d 0a 7b 0d 0a 09 | 69 66 20 28 43 6f 72 65 |e)..{...|if (Core|
|00003480| 53 74 61 67 65 20 3d 3d | 20 34 20 7c 7c 20 43 6f |Stage ==| 4 || Co|
|00003490| 72 65 53 74 61 67 65 20 | 3d 3d 20 31 20 7c 7c 20 |reStage |== 1 || |
|000034a0| 48 65 61 6c 74 68 20 3c | 3d 20 30 20 7c 7c 20 41 |Health <|= 0 || A|
|000034b0| 6d 6f 75 6e 74 20 3c 3d | 20 30 20 7c 7c 20 48 65 |mount <=| 0 || He|
|000034c0| 61 6c 65 72 20 3d 3d 20 | 4e 6f 6e 65 20 7c 7c 20 |aler == |None || |
|000034d0| 21 54 65 61 6d 4c 69 6e | 6b 28 48 65 61 6c 65 72 |!TeamLin|k(Healer|
|000034e0| 2e 47 65 74 54 65 61 6d | 4e 75 6d 28 29 29 29 0d |.GetTeam|Num())).|
|000034f0| 0a 09 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|00003500| 0d 0a 0d 0a 09 69 66 20 | 28 48 65 61 6c 74 68 20 |.....if |(Health |
|00003510| 3e 3d 20 44 61 6d 61 67 | 65 43 61 70 61 63 69 74 |>= Damag|eCapacit|
|00003520| 79 29 0d 0a 09 7b 0d 0a | 20 20 20 20 20 20 20 20 |y)...{..| |
|00003530| 69 66 20 28 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |if (Leve|l.TimeSe|
|00003540| 63 6f 6e 64 73 20 2d 20 | 48 65 61 6c 69 6e 67 54 |conds - |HealingT|
|00003550| 69 6d 65 20 3c 20 30 2e | 35 29 0d 0a 20 20 20 20 |ime < 0.|5).. |
|00003560| 20 20 20 20 20 20 20 20 | 50 6c 61 79 53 6f 75 6e | |PlaySoun|
|00003570| 64 28 48 65 61 6c 65 64 | 53 6f 75 6e 64 2c 20 53 |d(Healed|Sound, S|
|00003580| 4c 4f 54 5f 4d 69 73 63 | 2c 20 35 2e 30 29 3b 0d |LOT_Misc|, 5.0);.|
|00003590| 0a 0d 0a 20 20 20 20 20 | 20 20 20 72 65 74 75 72 |... | retur|
|000035a0| 6e 20 66 61 6c 73 65 3b | 0d 0a 20 20 20 20 7d 0d |n false;|.. }.|
|000035b0| 0a 0d 0a 09 41 6d 6f 75 | 6e 74 20 3d 20 4d 69 6e |....Amou|nt = Min|
|000035c0| 28 41 6d 6f 75 6e 74 20 | 2a 20 4c 69 6e 6b 48 65 |(Amount |* LinkHe|
|000035d0| 61 6c 4d 75 6c 74 2c 20 | 44 61 6d 61 67 65 43 61 |alMult, |DamageCa|
|000035e0| 70 61 63 69 74 79 20 2d | 20 48 65 61 6c 74 68 29 |pacity -| Health)|
|000035f0| 3b 0d 0a 09 48 65 61 6c | 74 68 20 2b 3d 20 41 6d |;...Heal|th += Am|
|00003600| 6f 75 6e 74 3b 0d 0a 09 | 69 66 20 28 4f 4e 53 50 |ount;...|if (ONSP|
|00003610| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00003620| 49 6e 66 6f 28 48 65 61 | 6c 65 72 2e 50 6c 61 79 |Info(Hea|ler.Play|
|00003630| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00003640| 6f 29 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 09 09 4f |o) != No|ne)....O|
|00003650| 4e 53 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |NSPlayer|Replicat|
|00003660| 69 6f 6e 49 6e 66 6f 28 | 48 65 61 6c 65 72 2e 50 |ionInfo(|Healer.P|
|00003670| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00003680| 49 6e 66 6f 29 2e 41 64 | 64 48 65 61 6c 42 6f 6e |Info).Ad|dHealBon|
|00003690| 75 73 28 66 6c 6f 61 74 | 28 41 6d 6f 75 6e 74 29 |us(float|(Amount)|
|000036a0| 20 2f 20 44 61 6d 61 67 | 65 43 61 70 61 63 69 74 | / Damag|eCapacit|
|000036b0| 79 20 2a 20 53 63 6f 72 | 65 29 3b 0d 0a 0d 0a 09 |y * Scor|e);.....|
|000036c0| 4e 65 74 55 70 64 61 74 | 65 54 69 6d 65 20 3d 20 |NetUpdat|eTime = |
|000036d0| 4c 65 76 65 6c 2e 54 69 | 6d 65 53 65 63 6f 6e 64 |Level.Ti|meSecond|
|000036e0| 73 20 2d 20 31 3b 0d 0a | 20 20 20 20 48 65 61 6c |s - 1;..| Heal|
|000036f0| 69 6e 67 54 69 6d 65 20 | 3d 20 4c 65 76 65 6c 2e |ingTime |= Level.|
|00003700| 54 69 6d 65 53 65 63 6f | 6e 64 73 3b 0d 0a 20 20 |TimeSeco|nds;.. |
|00003710| 20 20 4c 61 73 74 48 65 | 61 6c 65 64 42 79 20 3d | LastHe|aledBy =|
|00003720| 20 48 65 61 6c 65 72 3b | 0d 0a 0d 0a 20 20 20 20 | Healer;|.... |
|00003730| 69 66 20 28 4e 6f 64 65 | 48 65 61 6c 45 66 66 65 |if (Node|HealEffe|
|00003740| 63 74 20 3d 3d 20 4e 6f | 6e 65 29 0d 0a 20 20 20 |ct == No|ne).. |
|00003750| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 4e 6f 64 65 | {.. | Node|
|00003760| 48 65 61 6c 45 66 66 65 | 63 74 20 3d 20 53 70 61 |HealEffe|ct = Spa|
|00003770| 77 6e 28 63 6c 61 73 73 | 27 4f 4e 53 4e 6f 64 65 |wn(class|'ONSNode|
|00003780| 48 65 61 6c 45 66 66 65 | 63 74 27 2c 20 73 65 6c |HealEffe|ct', sel|
|00003790| 66 2c 2c 20 4c 6f 63 61 | 74 69 6f 6e 20 2b 20 76 |f,, Loca|tion + v|
|000037a0| 65 63 74 28 30 2c 30 2c | 33 36 33 29 29 3b 0d 0a |ect(0,0,|363));..|
|000037b0| 20 20 20 20 20 20 20 20 | 4e 6f 64 65 48 65 61 6c | |NodeHeal|
|000037c0| 45 66 66 65 63 74 2e 41 | 6d 62 69 65 6e 74 53 6f |Effect.A|mbientSo|
|000037d0| 75 6e 64 20 3d 20 48 65 | 61 6c 69 6e 67 53 6f 75 |und = He|alingSou|
|000037e0| 6e 64 3b 0d 0a 20 20 20 | 20 7d 0d 0a 0d 0a 20 20 |nd;.. | }.... |
|000037f0| 20 20 45 6e 61 62 6c 65 | 28 27 54 69 63 6b 27 29 | Enable|('Tick')|
|00003800| 3b 0d 0a 0d 0a 20 20 20 | 20 72 65 74 75 72 6e 20 |;.... | return |
|00003810| 74 72 75 65 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |true;..}|....simu|
|00003820| 6c 61 74 65 64 20 65 76 | 65 6e 74 20 54 69 63 6b |lated ev|ent Tick|
|00003830| 28 66 6c 6f 61 74 20 44 | 54 29 0d 0a 7b 0d 0a 20 |(float D|T)..{.. |
|00003840| 20 20 20 69 66 20 28 4c | 65 76 65 6c 2e 54 69 6d | if (L|evel.Tim|
|00003850| 65 53 65 63 6f 6e 64 73 | 20 2d 20 48 65 61 6c 69 |eSeconds| - Heali|
|00003860| 6e 67 54 69 6d 65 20 3e | 20 30 2e 35 29 0d 0a 20 |ngTime >| 0.5).. |
|00003870| 20 20 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 69 66 | {.. | if|
|00003880| 20 28 4e 6f 64 65 48 65 | 61 6c 45 66 66 65 63 74 | (NodeHe|alEffect|
|00003890| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 20 20 20 20 20 | != None|).. |
|000038a0| 20 20 20 20 20 20 20 4e | 6f 64 65 48 65 61 6c 45 | N|odeHealE|
|000038b0| 66 66 65 63 74 2e 44 65 | 73 74 72 6f 79 28 29 3b |ffect.De|stroy();|
|000038c0| 0d 0a 0d 0a 09 44 69 73 | 61 62 6c 65 28 27 54 69 |.....Dis|able('Ti|
|000038d0| 63 6b 27 29 3b 0d 0a 20 | 20 20 20 7d 0d 0a 7d 0d |ck');.. | }..}.|
|000038e0| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|000038f0| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 50 6f 77 65 72 |ction bo|ol Power|
|00003900| 65 64 42 79 28 62 79 74 | 65 20 54 65 61 6d 29 0d |edBy(byt|e Team).|
|00003910| 0a 7b 0d 0a 20 20 20 20 | 69 66 20 28 54 65 61 6d |.{.. |if (Team|
|00003920| 20 3d 3d 20 30 20 26 26 | 20 62 50 6f 77 65 72 65 | == 0 &&| bPowere|
|00003930| 64 42 79 52 65 64 29 0d | 0a 20 20 20 20 20 20 20 |dByRed).|. |
|00003940| 20 72 65 74 75 72 6e 20 | 54 72 75 65 3b 0d 0a 20 | return |True;.. |
|00003950| 20 20 20 69 66 20 28 54 | 65 61 6d 20 3d 3d 20 31 | if (T|eam == 1|
|00003960| 20 26 26 20 62 50 6f 77 | 65 72 65 64 42 79 42 6c | && bPow|eredByBl|
|00003970| 75 65 29 0d 0a 20 20 20 | 20 20 20 20 20 72 65 74 |ue).. | ret|
|00003980| 75 72 6e 20 54 72 75 65 | 3b 0d 0a 20 20 20 20 72 |urn True|;.. r|
|00003990| 65 74 75 72 6e 20 46 61 | 6c 73 65 3b 0d 0a 7d 0d |eturn Fa|lse;..}.|
|000039a0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |...funct|ion bool|
|000039b0| 20 4c 69 6e 6b 65 64 54 | 6f 43 6f 72 65 43 6f 6e | LinkedT|oCoreCon|
|000039c0| 73 74 72 75 63 74 69 6e | 67 46 6f 72 28 62 79 74 |structin|gFor(byt|
|000039d0| 65 20 54 65 61 6d 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |e Team).|.{...loc|
|000039e0| 61 6c 20 69 6e 74 20 69 | 3b 0d 0a 0d 0a 09 66 6f |al int i|;.....fo|
|000039f0| 72 20 28 69 20 3d 20 30 | 3b 20 69 20 3c 20 50 6f |r (i = 0|; i < Po|
|00003a00| 77 65 72 4c 69 6e 6b 73 | 2e 6c 65 6e 67 74 68 3b |werLinks|.length;|
|00003a10| 20 69 2b 2b 29 0d 0a 09 | 09 69 66 20 28 20 28 50 | i++)...|.if ( (P|
|00003a20| 6f 77 65 72 4c 69 6e 6b | 73 5b 69 5d 2e 44 65 66 |owerLink|s[i].Def|
|00003a30| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 20 3d |enderTea|mIndex =|
|00003a40| 3d 20 54 65 61 6d 29 20 | 26 26 20 28 28 50 6f 77 |= Team) |&& ((Pow|
|00003a50| 65 72 4c 69 6e 6b 73 5b | 69 5d 2e 43 6f 72 65 53 |erLinks[|i].CoreS|
|00003a60| 74 61 67 65 20 3d 3d 20 | 32 29 20 7c 7c 20 28 50 |tage == |2) || (P|
|00003a70| 6f 77 65 72 4c 69 6e 6b | 73 5b 69 5d 2e 43 6f 72 |owerLink|s[i].Cor|
|00003a80| 65 53 74 61 67 65 20 3d | 3d 20 35 29 29 20 29 0d |eStage =|= 5)) ).|
|00003a90| 0a 09 09 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |....retu|rn true;|
|00003aa0| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 66 61 6c 73 |.....ret|urn fals|
|00003ab0| 65 3b 0d 0a 7d 0d 0a 0d | 0a 73 69 6d 75 6c 61 74 |e;..}...|.simulat|
|00003ac0| 65 64 20 65 76 65 6e 74 | 20 50 6f 73 74 4e 65 74 |ed event| PostNet|
|00003ad0| 52 65 63 65 69 76 65 28 | 29 0d 0a 7b 0d 0a 20 20 |Receive(|)..{.. |
|00003ae0| 20 20 69 66 20 28 43 6f | 72 65 53 74 61 67 65 20 | if (Co|reStage |
|00003af0| 21 3d 20 4c 61 73 74 43 | 6f 72 65 53 74 61 67 65 |!= LastC|oreStage|
|00003b00| 29 0d 0a 20 20 20 20 7b | 0d 0a 2f 2f 20 20 20 20 |).. {|..// |
|00003b10| 09 6c 6f 67 28 4e 61 6d | 65 40 22 43 6f 72 65 53 |.log(Nam|e@"CoreS|
|00003b20| 74 61 67 65 20 63 68 61 | 6e 67 65 64 20 66 72 6f |tage cha|nged fro|
|00003b30| 6d 20 22 24 4c 61 73 74 | 43 6f 72 65 53 74 61 67 |m "$Last|CoreStag|
|00003b40| 65 40 22 74 6f 22 40 43 | 6f 72 65 53 74 61 67 65 |e@"to"@C|oreStage|
|00003b50| 29 3b 0d 0a 09 20 20 20 | 4c 61 73 74 43 6f 72 65 |);... |LastCore|
|00003b60| 53 74 61 67 65 20 3d 20 | 43 6f 72 65 53 74 61 67 |Stage = |CoreStag|
|00003b70| 65 3b 0d 0a 20 20 20 20 | 20 20 20 73 77 69 74 63 |e;.. | switc|
|00003b80| 68 28 43 6f 72 65 53 74 | 61 67 65 29 0d 0a 20 20 |h(CoreSt|age).. |
|00003b90| 20 20 20 20 20 20 7b 0d | 0a 20 20 20 20 20 20 20 | {.|. |
|00003ba0| 20 20 20 20 20 63 61 73 | 65 20 30 3a 0d 0a 20 20 | cas|e 0:.. |
|00003bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 6f | | Po|
|00003bc0| 77 65 72 43 6f 72 65 41 | 63 74 69 76 65 28 29 3b |werCoreA|ctive();|
|00003bd0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00003be0| 20 20 62 72 65 61 6b 3b | 0d 0a 20 20 20 20 20 20 | break;|.. |
|00003bf0| 20 20 20 20 20 20 63 61 | 73 65 20 31 3a 0d 0a 20 | ca|se 1:.. |
|00003c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 50 | | P|
|00003c10| 6f 77 65 72 43 6f 72 65 | 44 65 73 74 72 6f 79 65 |owerCore|Destroye|
|00003c20| 64 28 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |d();.. | |
|00003c30| 20 20 20 20 20 20 62 72 | 65 61 6b 3b 0d 0a 20 20 | br|eak;.. |
|00003c40| 20 20 20 20 20 20 20 20 | 20 20 63 61 73 65 20 32 | | case 2|
|00003c50| 3a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |:.. | |
|00003c60| 20 20 20 50 6f 77 65 72 | 43 6f 72 65 43 6f 6e 73 | Power|CoreCons|
|00003c70| 74 72 75 63 74 69 6e 67 | 28 29 3b 0d 0a 20 20 20 |tructing|();.. |
|00003c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 62 72 65 | | bre|
|00003c90| 61 6b 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ak;.. | |
|00003ca0| 20 63 61 73 65 20 33 3a | 0d 0a 20 20 20 20 20 20 | case 3:|.. |
|00003cb0| 20 20 20 20 20 20 20 20 | 20 20 50 6f 77 65 72 43 | | PowerC|
|00003cc0| 6f 72 65 52 65 73 65 74 | 28 29 3b 0d 0a 20 20 20 |oreReset|();.. |
|00003cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 62 72 65 | | bre|
|00003ce0| 61 6b 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ak;.. | |
|00003cf0| 20 63 61 73 65 20 34 3a | 0d 0a 20 20 20 20 20 20 | case 4:|.. |
|00003d00| 20 20 20 20 20 20 20 20 | 20 20 50 6f 77 65 72 43 | | PowerC|
|00003d10| 6f 72 65 4e 65 75 74 72 | 61 6c 28 29 3b 0d 0a 20 |oreNeutr|al();.. |
|00003d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | | b|
|00003d30| 72 65 61 6b 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |reak;.. | |
|00003d40| 20 20 20 63 61 73 65 20 | 35 3a 0d 0a 20 20 20 20 | case |5:.. |
|00003d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 6f 77 65 | | Powe|
|00003d60| 72 43 6f 72 65 52 65 63 | 6f 6e 73 74 69 74 75 74 |rCoreRec|onstitut|
|00003d70| 69 6f 6e 28 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |ion();..| |
|00003d80| 20 20 20 20 09 62 72 65 | 61 6b 3b 0d 0a 20 20 20 | .bre|ak;.. |
|00003d90| 20 20 20 20 20 20 20 20 | 20 63 61 73 65 20 32 35 | | case 25|
|00003da0| 35 3a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |5:.. | |
|00003db0| 09 50 6f 77 65 72 43 6f | 72 65 44 69 73 61 62 6c |.PowerCo|reDisabl|
|00003dc0| 65 64 28 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |ed();.. | |
|00003dd0| 20 20 20 09 62 72 65 61 | 6b 3b 0d 0a 20 20 20 20 | .brea|k;.. |
|00003de0| 20 20 20 20 7d 0d 0a 2f | 2f 20 20 20 20 20 20 20 | }../|/ |
|00003df0| 20 55 70 64 61 74 65 4c | 69 6e 6b 53 74 61 74 65 | UpdateL|inkState|
|00003e00| 28 53 65 6c 66 29 3b 0d | 0a 20 20 20 20 7d 0d 0a |(Self);.|. }..|
|00003e10| 0d 0a 20 20 20 20 69 66 | 20 28 62 55 6e 64 65 72 |.. if| (bUnder|
|00003e20| 41 74 74 61 63 6b 20 21 | 3d 20 62 4f 6c 64 55 6e |Attack !|= bOldUn|
|00003e30| 64 65 72 41 74 74 61 63 | 6b 29 0d 0a 20 20 20 20 |derAttac|k).. |
|00003e40| 7b 0d 0a 2f 2f 20 20 20 | 20 09 6c 6f 67 28 4e 61 |{..// | .log(Na|
|00003e50| 6d 65 40 22 55 6e 64 65 | 72 41 74 74 61 63 6b 43 |me@"Unde|rAttackC|
|00003e60| 68 61 6e 67 65 64 20 74 | 6f 22 40 62 55 6e 64 65 |hanged t|o"@bUnde|
|00003e70| 72 41 74 74 61 63 6b 29 | 3b 0d 0a 20 20 20 20 20 |rAttack)|;.. |
|00003e80| 20 20 20 55 6e 64 65 72 | 41 74 74 61 63 6b 43 68 | Under|AttackCh|
|00003e90| 61 6e 67 65 28 29 3b 0d | 0a 20 20 20 20 20 20 20 |ange();.|. |
|00003ea0| 20 62 4f 6c 64 55 6e 64 | 65 72 41 74 74 61 63 6b | bOldUnd|erAttack|
|00003eb0| 20 3d 20 62 55 6e 64 65 | 72 41 74 74 61 63 6b 3b | = bUnde|rAttack;|
|00003ec0| 0d 0a 20 20 20 20 7d 0d | 0a 0d 0a 20 20 20 20 69 |.. }.|... i|
|00003ed0| 66 20 28 20 44 65 66 65 | 6e 64 65 72 54 65 61 6d |f ( Defe|nderTeam|
|00003ee0| 49 6e 64 65 78 20 21 3d | 20 4c 61 73 74 44 65 66 |Index !=| LastDef|
|00003ef0| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 20 29 |enderTea|mIndex )|
|00003f00| 0d 0a 20 20 20 20 7b 0d | 0a 2f 2f 20 20 20 20 09 |.. {.|.// .|
|00003f10| 6c 6f 67 28 4e 61 6d 65 | 40 22 44 65 66 65 6e 64 |log(Name|@"Defend|
|00003f20| 65 72 54 65 61 6d 49 6e | 64 65 78 20 63 68 61 6e |erTeamIn|dex chan|
|00003f30| 67 65 64 20 66 72 6f 6d | 20 22 24 4c 61 73 74 44 |ged from| "$LastD|
|00003f40| 65 66 65 6e 64 65 72 54 | 65 61 6d 49 6e 64 65 78 |efenderT|eamIndex|
|00003f50| 40 22 74 6f 22 40 44 65 | 66 65 6e 64 65 72 54 65 |@"to"@De|fenderTe|
|00003f60| 61 6d 49 6e 64 65 78 29 | 3b 0d 0a 20 20 20 20 09 |amIndex)|;.. .|
|00003f70| 4c 61 73 74 44 65 66 65 | 6e 64 65 72 54 65 61 6d |LastDefe|nderTeam|
|00003f80| 49 6e 64 65 78 20 3d 20 | 44 65 66 65 6e 64 65 72 |Index = |Defender|
|00003f90| 54 65 61 6d 49 6e 64 65 | 78 3b 0d 0a 20 20 20 20 |TeamInde|x;.. |
|00003fa0| 09 55 70 64 61 74 65 4c | 69 6e 6b 53 74 61 74 65 |.UpdateL|inkState|
|00003fb0| 28 53 65 6c 66 29 3b 0d | 0a 20 20 20 20 7d 0d 0a |(Self);.|. }..|
|00003fc0| 0d 0a 20 20 20 20 43 68 | 65 63 6b 53 68 69 65 6c |.. Ch|eckShiel|
|00003fd0| 64 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |d();..}.|...simul|
|00003fe0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 4e 6f |ated fun|ction No|
|00003ff0| 74 69 66 79 4c 6f 63 61 | 6c 50 6c 61 79 65 72 54 |tifyLoca|lPlayerT|
|00004000| 65 61 6d 52 65 63 65 69 | 76 65 64 28 29 0d 0a 7b |eamRecei|ved()..{|
|00004010| 0d 0a 09 43 68 65 63 6b | 53 68 69 65 6c 64 28 29 |...Check|Shield()|
|00004020| 3b 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |;..}....|simulate|
|00004030| 64 20 66 75 6e 63 74 69 | 6f 6e 20 55 6e 64 65 72 |d functi|on Under|
|00004040| 41 74 74 61 63 6b 43 68 | 61 6e 67 65 28 29 0d 0a |AttackCh|ange()..|
|00004050| 7b 0d 0a 20 20 20 20 69 | 66 20 28 4e 6f 64 65 42 |{.. i|f (NodeB|
|00004060| 65 61 6d 45 66 66 65 63 | 74 20 21 3d 20 4e 6f 6e |eamEffec|t != Non|
|00004070| 65 20 26 26 20 4e 6f 64 | 65 42 65 61 6d 45 66 66 |e && Nod|eBeamEff|
|00004080| 65 63 74 2e 45 6d 69 74 | 74 65 72 73 5b 32 5d 20 |ect.Emit|ters[2] |
|00004090| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 20 20 20 20 20 20 |!= None)|.. |
|000040a0| 20 20 4e 6f 64 65 42 65 | 61 6d 45 66 66 65 63 74 | NodeBe|amEffect|
|000040b0| 2e 45 6d 69 74 74 65 72 | 73 5b 32 5d 2e 44 69 73 |.Emitter|s[2].Dis|
|000040c0| 61 62 6c 65 64 20 3d 20 | 21 62 55 6e 64 65 72 41 |abled = |!bUnderA|
|000040d0| 74 74 61 63 6b 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 |ttack;..|}....// |
|000040e0| 48 69 64 65 2f 55 6e 48 | 69 64 65 20 53 68 69 65 |Hide/UnH|ide Shie|
|000040f0| 6c 64 20 45 66 66 65 63 | 74 0d 0a 73 69 6d 75 6c |ld Effec|t..simul|
|00004100| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 43 68 |ated fun|ction Ch|
|00004110| 65 63 6b 53 68 69 65 6c | 64 28 29 0d 0a 7b 0d 0a |eckShiel|d()..{..|
|00004120| 09 6c 6f 63 61 6c 20 50 | 6c 61 79 65 72 43 6f 6e |.local P|layerCon|
|00004130| 74 72 6f 6c 6c 65 72 20 | 50 43 3b 0d 0a 0d 0a 09 |troller |PC;.....|
|00004140| 55 70 64 61 74 65 4c 6f | 63 61 74 69 6f 6e 4e 61 |UpdateLo|cationNa|
|00004150| 6d 65 28 29 3b 0d 0a 0d | 0a 09 69 66 20 28 20 4e |me();...|..if ( N|
|00004160| 6f 64 65 42 65 61 6d 45 | 66 66 65 63 74 20 21 3d |odeBeamE|ffect !=|
|00004170| 20 4e 6f 6e 65 20 29 0d | 0a 09 7b 0d 0a 09 09 4e | None ).|..{....N|
|00004180| 6f 64 65 42 65 61 6d 45 | 66 66 65 63 74 2e 62 48 |odeBeamE|ffect.bH|
|00004190| 69 64 64 65 6e 20 3d 20 | 21 62 53 68 6f 77 4e 6f |idden = |!bShowNo|
|000041a0| 64 65 42 65 61 6d 73 3b | 0d 0a 0d 0a 09 09 69 66 |deBeams;|......if|
|000041b0| 20 28 20 28 43 6f 72 65 | 53 74 61 67 65 20 21 3d | ( (Core|Stage !=|
|000041c0| 20 30 20 7c 7c 20 28 4e | 6f 64 65 42 65 61 6d 45 | 0 || (N|odeBeamE|
|000041d0| 66 66 65 63 74 2e 49 73 | 41 28 27 4f 4e 53 4e 6f |ffect.Is|A('ONSNo|
|000041e0| 64 65 42 65 61 6d 52 65 | 64 45 66 66 65 63 74 27 |deBeamRe|dEffect'|
|000041f0| 29 20 26 26 20 44 65 66 | 65 6e 64 65 72 54 65 61 |) && Def|enderTea|
|00004200| 6d 49 6e 64 65 78 20 3d | 3d 20 31 29 20 7c 7c 20 |mIndex =|= 1) || |
|00004210| 28 4e 6f 64 65 42 65 61 | 6d 45 66 66 65 63 74 2e |(NodeBea|mEffect.|
|00004220| 49 73 41 28 27 4f 4e 53 | 4e 6f 64 65 42 65 61 6d |IsA('ONS|NodeBeam|
|00004230| 42 6c 75 65 45 66 66 65 | 63 74 27 29 20 26 26 20 |BlueEffe|ct') && |
|00004240| 44 65 66 65 6e 64 65 72 | 54 65 61 6d 49 6e 64 65 |Defender|TeamInde|
|00004250| 78 20 3d 3d 20 30 29 29 | 29 0d 0a 09 09 09 4e 6f |x == 0))|).....No|
|00004260| 64 65 42 65 61 6d 45 66 | 66 65 63 74 2e 44 65 73 |deBeamEf|fect.Des|
|00004270| 74 72 6f 79 28 29 3b 0d | 0a 09 7d 0d 0a 09 69 66 |troy();.|..}...if|
|00004280| 20 28 50 6f 77 65 72 65 | 64 42 79 28 31 20 2d 20 | (Powere|dBy(1 - |
|00004290| 44 65 66 65 6e 64 65 72 | 54 65 61 6d 49 6e 64 65 |Defender|TeamInde|
|000042a0| 78 29 29 0d 0a 09 7b 0d | 0a 20 20 20 20 20 20 20 |x))...{.|. |
|000042b0| 20 53 68 69 65 6c 64 2e | 62 48 69 64 64 65 6e 20 | Shield.|bHidden |
|000042c0| 3d 20 74 72 75 65 3b 0d | 0a 09 09 53 68 69 65 6c |= true;.|...Shiel|
|000042d0| 64 2e 53 65 74 43 6f 6c | 6c 69 73 69 6f 6e 28 66 |d.SetCol|lision(f|
|000042e0| 61 6c 73 65 29 3b 0d 0a | 0d 0a 20 20 20 20 20 20 |alse);..|.. |
|000042f0| 20 20 69 66 20 28 20 28 | 4c 65 76 65 6c 2e 4e 65 | if ( (|Level.Ne|
|00004300| 74 4d 6f 64 65 20 21 3d | 20 4e 4d 5f 44 65 64 69 |tMode !=| NM_Dedi|
|00004310| 63 61 74 65 64 53 65 72 | 76 65 72 29 20 26 26 20 |catedSer|ver) && |
|00004320| 62 53 68 6f 77 4e 6f 64 | 65 42 65 61 6d 73 20 26 |bShowNod|eBeams &|
|00004330| 26 20 43 6f 72 65 53 74 | 61 67 65 20 3d 3d 20 30 |& CoreSt|age == 0|
|00004340| 20 26 26 20 4e 6f 64 65 | 42 65 61 6d 45 66 66 65 | && Node|BeamEffe|
|00004350| 63 74 20 3d 3d 20 4e 6f | 6e 65 29 0d 0a 20 20 20 |ct == No|ne).. |
|00004360| 20 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 | {..| |
|00004370| 20 20 20 20 69 66 20 28 | 44 65 66 65 6e 64 65 72 | if (|Defender|
|00004380| 54 65 61 6d 49 6e 64 65 | 78 20 3d 3d 20 30 29 0d |TeamInde|x == 0).|
|00004390| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000043a0| 20 4e 6f 64 65 42 65 61 | 6d 45 66 66 65 63 74 20 | NodeBea|mEffect |
|000043b0| 3d 20 73 70 61 77 6e 28 | 63 6c 61 73 73 27 4f 4e |= spawn(|class'ON|
|000043c0| 53 4e 6f 64 65 42 65 61 | 6d 52 65 64 45 66 66 65 |SNodeBea|mRedEffe|
|000043d0| 63 74 27 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |ct');.. | |
|000043e0| 20 20 20 65 6c 73 65 0d | 0a 20 20 20 20 20 20 20 | else.|. |
|000043f0| 20 20 20 20 20 20 20 20 | 20 4e 6f 64 65 42 65 61 | | NodeBea|
|00004400| 6d 45 66 66 65 63 74 20 | 3d 20 73 70 61 77 6e 28 |mEffect |= spawn(|
|00004410| 63 6c 61 73 73 27 4f 4e | 53 4e 6f 64 65 42 65 61 |class'ON|SNodeBea|
|00004420| 6d 42 6c 75 65 45 66 66 | 65 63 74 27 29 3b 0d 0a |mBlueEff|ect');..|
|00004430| 20 20 20 20 20 20 20 20 | 7d 0d 0a 09 7d 0d 0a 09 | |}...}...|
|00004440| 65 6c 73 65 20 69 66 20 | 28 43 6f 72 65 53 74 61 |else if |(CoreSta|
|00004450| 67 65 20 21 3d 20 30 20 | 26 26 20 43 6f 72 65 53 |ge != 0 |&& CoreS|
|00004460| 74 61 67 65 20 21 3d 20 | 32 29 0d 0a 20 20 20 20 |tage != |2).. |
|00004470| 7b 0d 0a 20 20 20 20 20 | 20 20 20 53 68 69 65 6c |{.. | Shiel|
|00004480| 64 2e 62 48 69 64 64 65 | 6e 20 3d 20 74 72 75 65 |d.bHidde|n = true|
|00004490| 3b 0d 0a 09 09 53 68 69 | 65 6c 64 2e 53 65 74 43 |;....Shi|eld.SetC|
|000044a0| 6f 6c 6c 69 73 69 6f 6e | 28 66 61 6c 73 65 29 3b |ollision|(false);|
|000044b0| 0d 0a 09 09 69 66 20 28 | 4e 6f 64 65 42 65 61 6d |....if (|NodeBeam|
|000044c0| 45 66 66 65 63 74 20 21 | 3d 20 4e 6f 6e 65 29 0d |Effect !|= None).|
|000044d0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 4e 6f 64 |. | Nod|
|000044e0| 65 42 65 61 6d 45 66 66 | 65 63 74 2e 44 65 73 74 |eBeamEff|ect.Dest|
|000044f0| 72 6f 79 28 29 3b 0d 0a | 09 7d 0d 0a 09 65 6c 73 |roy();..|.}...els|
|00004500| 65 0d 0a 09 7b 0d 0a 09 | 09 53 68 69 65 6c 64 2e |e...{...|.Shield.|
|00004510| 62 48 69 64 64 65 6e 20 | 3d 20 66 61 6c 73 65 3b |bHidden |= false;|
|00004520| 0d 0a 09 09 53 68 69 65 | 6c 64 2e 53 65 74 43 6f |....Shie|ld.SetCo|
|00004530| 6c 6c 69 73 69 6f 6e 28 | 74 72 75 65 29 3b 0d 0a |llision(|true);..|
|00004540| 09 09 53 68 69 65 6c 64 | 2e 53 65 74 54 65 61 6d |..Shield|.SetTeam|
|00004550| 28 44 65 66 65 6e 64 65 | 72 54 65 61 6d 49 6e 64 |(Defende|rTeamInd|
|00004560| 65 78 29 3b 0d 0a 09 09 | 69 66 20 28 4e 6f 64 65 |ex);....|if (Node|
|00004570| 42 65 61 6d 45 66 66 65 | 63 74 20 21 3d 20 4e 6f |BeamEffe|ct != No|
|00004580| 6e 65 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ne).. | |
|00004590| 20 4e 6f 64 65 42 65 61 | 6d 45 66 66 65 63 74 2e | NodeBea|mEffect.|
|000045a0| 44 65 73 74 72 6f 79 28 | 29 3b 0d 0a 09 7d 0d 0a |Destroy(|);...}..|
|000045b0| 0d 0a 09 69 66 20 28 4c | 65 76 65 6c 2e 4e 65 74 |...if (L|evel.Net|
|000045c0| 4d 6f 64 65 20 3d 3d 20 | 4e 4d 5f 44 65 64 69 63 |Mode == |NM_Dedic|
|000045d0| 61 74 65 64 53 65 72 76 | 65 72 20 7c 7c 20 43 6f |atedServ|er || Co|
|000045e0| 72 65 53 74 61 67 65 20 | 21 3d 20 34 29 0d 0a 09 |reStage |!= 4)...|
|000045f0| 09 72 65 74 75 72 6e 3b | 0d 0a 0d 0a 09 50 43 20 |.return;|.....PC |
|00004600| 3d 20 4c 65 76 65 6c 2e | 47 65 74 4c 6f 63 61 6c |= Level.|GetLocal|
|00004610| 50 6c 61 79 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |PlayerCo|ntroller|
|00004620| 28 29 3b 0d 0a 09 69 66 | 20 28 50 43 20 3d 3d 20 |();...if| (PC == |
|00004630| 4e 6f 6e 65 20 7c 7c 20 | 50 43 2e 50 6c 61 79 65 |None || |PC.Playe|
|00004640| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00004650| 20 3d 3d 20 4e 6f 6e 65 | 20 7c 7c 20 28 21 50 43 | == None| || (!PC|
|00004660| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00004670| 6f 6e 49 6e 66 6f 2e 62 | 4f 6e 6c 79 53 70 65 63 |onInfo.b|OnlySpec|
|00004680| 74 61 74 6f 72 20 26 26 | 20 50 43 2e 50 6c 61 79 |tator &&| PC.Play|
|00004690| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|000046a0| 6f 2e 54 65 61 6d 20 3d | 3d 20 4e 6f 6e 65 29 29 |o.Team =|= None))|
|000046b0| 0d 0a 09 09 72 65 74 75 | 72 6e 3b 0d 0a 0d 0a 09 |....retu|rn;.....|
|000046c0| 69 66 20 28 50 6f 77 65 | 72 65 64 42 79 28 50 43 |if (Powe|redBy(PC|
|000046d0| 2e 47 65 74 54 65 61 6d | 4e 75 6d 28 29 29 29 0d |.GetTeam|Num())).|
|000046e0| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 52 6f 61 6d 69 |..{....i|f (Roami|
|000046f0| 6e 67 45 6e 65 72 67 79 | 20 3d 3d 20 4e 6f 6e 65 |ngEnergy| == None|
|00004700| 29 0d 0a 09 09 20 20 20 | 20 20 20 20 20 52 6f 61 |).... | Roa|
|00004710| 6d 69 6e 67 45 6e 65 72 | 67 79 20 3d 20 73 70 61 |mingEner|gy = spa|
|00004720| 77 6e 28 63 6c 61 73 73 | 27 4f 4e 53 46 72 65 65 |wn(class|'ONSFree|
|00004730| 52 6f 61 6d 69 6e 67 45 | 6e 65 72 67 79 45 66 66 |RoamingE|nergyEff|
|00004740| 65 63 74 27 2c 73 65 6c | 66 2c 2c 20 4c 6f 63 61 |ect',sel|f,, Loca|
|00004750| 74 69 6f 6e 20 2b 20 76 | 65 63 74 28 30 2c 30 2c |tion + v|ect(0,0,|
|00004760| 33 30 29 20 2b 20 50 72 | 65 50 69 76 6f 74 20 2a |30) + Pr|ePivot *|
|00004770| 20 2d 32 29 3b 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 | -2);...|}...else|
|00004780| 20 69 66 20 28 52 6f 61 | 6d 69 6e 67 45 6e 65 72 | if (Roa|mingEner|
|00004790| 67 79 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 09 7b 0d |gy != No|ne)...{.|
|000047a0| 0a 09 09 52 6f 61 6d 69 | 6e 67 45 6e 65 72 67 79 |...Roami|ngEnergy|
|000047b0| 2e 4b 69 6c 6c 28 29 3b | 0d 0a 09 09 52 6f 61 6d |.Kill();|....Roam|
|000047c0| 69 6e 67 45 6e 65 72 67 | 79 20 3d 20 4e 6f 6e 65 |ingEnerg|y = None|
|000047d0| 3b 0d 0a 09 7d 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |;...}..}|....simu|
|000047e0| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 50 |lated fu|nction P|
|000047f0| 6f 77 65 72 43 6f 72 65 | 44 69 73 61 62 6c 65 64 |owerCore|Disabled|
|00004800| 28 29 0d 0a 7b 0d 0a 2f | 2f 09 6c 6f 67 28 4e 61 |()..{../|/.log(Na|
|00004810| 6d 65 40 22 50 6f 77 65 | 72 43 6f 72 65 44 69 73 |me@"Powe|rCoreDis|
|00004820| 61 62 6c 65 64 22 29 3b | 0d 0a 20 20 20 20 62 48 |abled");|.. bH|
|00004830| 69 64 64 65 6e 20 3d 20 | 54 72 75 65 3b 0d 0a 20 |idden = |True;.. |
|00004840| 20 20 20 62 50 6f 77 65 | 72 65 64 20 3d 20 46 61 | bPowe|red = Fa|
|00004850| 6c 73 65 3b 0d 0a 0d 0a | 20 20 20 20 69 66 20 28 |lse;....| if (|
|00004860| 52 6f 61 6d 69 6e 67 45 | 6e 65 72 67 79 20 21 3d |RoamingE|nergy !=|
|00004870| 20 4e 6f 6e 65 29 0d 0a | 20 20 20 20 20 20 20 20 | None)..| |
|00004880| 52 6f 61 6d 69 6e 67 45 | 6e 65 72 67 79 2e 44 65 |RoamingE|nergy.De|
|00004890| 73 74 72 6f 79 28 29 3b | 0d 0a 0d 0a 20 20 20 20 |stroy();|.... |
|000048a0| 43 68 65 63 6b 53 68 69 | 65 6c 64 28 29 3b 0d 0a |CheckShi|eld();..|
|000048b0| 0d 0a 20 20 20 20 55 70 | 64 61 74 65 4c 69 6e 6b |.. Up|dateLink|
|000048c0| 53 74 61 74 65 28 53 65 | 6c 66 29 3b 0d 0a 7d 0d |State(Se|lf);..}.|
|000048d0| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|000048e0| 63 74 69 6f 6e 20 50 6f | 77 65 72 43 6f 72 65 4e |ction Po|werCoreN|
|000048f0| 65 75 74 72 61 6c 28 29 | 0d 0a 7b 0d 0a 20 20 20 |eutral()|..{.. |
|00004900| 20 41 6d 62 69 65 6e 74 | 53 6f 75 6e 64 20 3d 20 | Ambient|Sound = |
|00004910| 4e 65 75 74 72 61 6c 53 | 6f 75 6e 64 3b 0d 0a 0d |NeutralS|ound;...|
|00004920| 0a 2f 2f 09 6c 6f 67 28 | 4e 61 6d 65 40 22 50 6f |.//.log(|Name@"Po|
|00004930| 77 65 72 43 6f 72 65 4e | 65 75 74 72 61 6c 22 29 |werCoreN|eutral")|
|00004940| 3b 0d 0a 20 20 20 20 48 | 65 61 6c 74 68 20 3d 20 |;.. H|ealth = |
|00004950| 30 3b 0d 0a 20 20 20 20 | 62 50 6f 77 65 72 65 64 |0;.. |bPowered|
|00004960| 20 3d 20 46 61 6c 73 65 | 3b 0d 0a 20 20 20 20 44 | = False|;.. D|
|00004970| 65 66 65 6e 64 65 72 54 | 65 61 6d 49 6e 64 65 78 |efenderT|eamIndex|
|00004980| 20 3d 20 32 3b 0d 0a 09 | 4e 65 74 55 70 64 61 74 | = 2;...|NetUpdat|
|00004990| 65 54 69 6d 65 20 3d 20 | 4c 65 76 65 6c 2e 54 69 |eTime = |Level.Ti|
|000049a0| 6d 65 53 65 63 6f 6e 64 | 73 20 2d 20 31 3b 0d 0a |meSecond|s - 1;..|
|000049b0| 0d 0a 20 20 20 20 69 66 | 20 28 4c 65 76 65 6c 2e |.. if| (Level.|
|000049c0| 4e 65 74 4d 6f 64 65 20 | 21 3d 20 4e 4d 5f 44 65 |NetMode |!= NM_De|
|000049d0| 64 69 63 61 74 65 64 53 | 65 72 76 65 72 29 0d 0a |dicatedS|erver)..|
|000049e0| 20 20 20 20 20 20 20 20 | 55 70 64 61 74 65 54 65 | |UpdateTe|
|000049f0| 61 6d 42 61 6e 6e 65 72 | 73 28 29 3b 0d 0a 0d 0a |amBanner|s();....|
|00004a00| 20 20 20 20 69 66 20 28 | 52 6f 6c 65 20 3d 3d 20 | if (|Role == |
|00004a10| 52 4f 4c 45 5f 41 75 74 | 68 6f 72 69 74 79 29 0d |ROLE_Aut|hority).|
|00004a20| 0a 20 20 20 20 7b 0d 0a | 20 20 20 20 09 4e 65 74 |. {..| .Net|
|00004a30| 55 70 64 61 74 65 54 69 | 6d 65 20 3d 20 4c 65 76 |UpdateTi|me = Lev|
|00004a40| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 20 2d |el.TimeS|econds -|
|00004a50| 20 31 3b 0d 0a 09 20 20 | 20 09 4e 6f 74 69 66 79 | 1;... | .Notify|
|00004a60| 55 70 64 61 74 65 4c 69 | 6e 6b 73 28 29 3b 0d 0a |UpdateLi|nks();..|
|00004a70| 09 7d 0d 0a 0d 0a 09 55 | 70 64 61 74 65 4c 69 6e |.}.....U|pdateLin|
|00004a80| 6b 53 74 61 74 65 28 53 | 65 6c 66 29 3b 0d 0a 7d |kState(S|elf);..}|
|00004a90| 0d 0a 0d 0a 73 69 6d 75 | 6c 61 74 65 64 20 66 75 |....simu|lated fu|
|00004aa0| 6e 63 74 69 6f 6e 20 50 | 6f 77 65 72 43 6f 72 65 |nction P|owerCore|
|00004ab0| 52 65 63 6f 6e 73 74 69 | 74 75 74 69 6f 6e 28 29 |Reconsti|tution()|
|00004ac0| 0d 0a 7b 0d 0a 20 20 20 | 20 69 66 20 28 4c 65 76 |..{.. | if (Lev|
|00004ad0| 65 6c 2e 4e 65 74 4d 6f | 64 65 20 21 3d 20 4e 4d |el.NetMo|de != NM|
|00004ae0| 5f 44 65 64 69 63 61 74 | 65 64 53 65 72 76 65 72 |_Dedicat|edServer|
|00004af0| 29 0d 0a 20 20 20 20 7b | 0d 0a 20 20 20 20 09 69 |).. {|.. .i|
|00004b00| 66 20 28 52 6f 61 6d 69 | 6e 67 45 6e 65 72 67 79 |f (Roami|ngEnergy|
|00004b10| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 20 20 20 20 | != None|)... |
|00004b20| 52 6f 61 6d 69 6e 67 45 | 6e 65 72 67 79 2e 44 65 |RoamingE|nergy.De|
|00004b30| 73 74 72 6f 79 28 29 3b | 0d 0a 0d 0a 20 20 20 20 |stroy();|.... |
|00004b40| 20 20 20 20 69 66 20 28 | 44 65 66 65 6e 64 65 72 | if (|Defender|
|00004b50| 54 65 61 6d 49 6e 64 65 | 78 20 3d 3d 20 30 29 0d |TeamInde|x == 0).|
|00004b60| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 53 70 61 |. | Spa|
|00004b70| 77 6e 28 63 6c 61 73 73 | 27 4f 4e 53 52 65 64 45 |wn(class|'ONSRedE|
|00004b80| 6e 65 72 67 79 45 66 66 | 65 63 74 27 2c 73 65 6c |nergyEff|ect',sel|
|00004b90| 66 2c 2c 20 4c 6f 63 61 | 74 69 6f 6e 20 2b 20 76 |f,, Loca|tion + v|
|00004ba0| 65 63 74 28 30 2c 30 2c | 2d 32 30 29 29 3b 0d 0a |ect(0,0,|-20));..|
|00004bb0| 20 20 20 20 20 20 20 20 | 65 6c 73 65 0d 0a 20 20 | |else.. |
|00004bc0| 20 20 20 20 20 20 20 20 | 20 20 53 70 61 77 6e 28 | | Spawn(|
|00004bd0| 63 6c 61 73 73 27 4f 4e | 53 42 6c 75 65 45 6e 65 |class'ON|SBlueEne|
|00004be0| 72 67 79 45 66 66 65 63 | 74 27 2c 73 65 6c 66 2c |rgyEffec|t',self,|
|00004bf0| 2c 20 4c 6f 63 61 74 69 | 6f 6e 20 2b 20 76 65 63 |, Locati|on + vec|
|00004c00| 74 28 30 2c 30 2c 2d 32 | 30 29 29 3b 0d 0a 20 20 |t(0,0,-2|0));.. |
|00004c10| 20 20 7d 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 | }..}..|..functi|
|00004c20| 6f 6e 20 62 6f 6f 6c 20 | 4c 65 67 69 74 69 6d 61 |on bool |Legitima|
|00004c30| 74 65 54 61 72 67 65 74 | 4f 66 28 42 6f 74 20 42 |teTarget|Of(Bot B|
|00004c40| 29 0d 0a 7b 0d 0a 09 69 | 66 20 28 44 65 66 65 6e |)..{...i|f (Defen|
|00004c50| 64 65 72 54 65 61 6d 49 | 6e 64 65 78 20 3d 3d 20 |derTeamI|ndex == |
|00004c60| 42 2e 53 71 75 61 64 2e | 54 65 61 6d 2e 54 65 61 |B.Squad.|Team.Tea|
|00004c70| 6d 49 6e 64 65 78 20 7c | 7c 20 43 6f 72 65 53 74 |mIndex ||| CoreSt|
|00004c80| 61 67 65 20 3d 3d 20 34 | 20 7c 7c 20 43 6f 72 65 |age == 4| || Core|
|00004c90| 53 74 61 67 65 20 3d 3d | 20 31 20 29 0d 0a 09 09 |Stage ==| 1 )....|
|00004ca0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 09 |return f|alse;...|
|00004cb0| 72 65 74 75 72 6e 20 53 | 75 70 65 72 2e 4c 65 67 |return S|uper.Leg|
|00004cc0| 69 74 69 6d 61 74 65 54 | 61 72 67 65 74 4f 66 28 |itimateT|argetOf(|
|00004cd0| 42 29 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |B);..}..|..simula|
|00004ce0| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 50 6f 77 |ted func|tion Pow|
|00004cf0| 65 72 43 6f 72 65 44 65 | 73 74 72 6f 79 65 64 28 |erCoreDe|stroyed(|
|00004d00| 29 0d 0a 7b 0d 0a 20 20 | 20 20 6c 6f 63 61 6c 20 |)..{.. | local |
|00004d10| 50 6c 61 79 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |PlayerCo|ntroller|
|00004d20| 20 50 43 3b 0d 0a 0d 0a | 20 20 20 20 41 6d 62 69 | PC;....| Ambi|
|00004d30| 65 6e 74 53 6f 75 6e 64 | 20 3d 20 4e 6f 6e 65 3b |entSound| = None;|
|00004d40| 0d 0a 2f 2f 09 6c 6f 67 | 28 4e 61 6d 65 40 22 50 |..//.log|(Name@"P|
|00004d50| 6f 77 65 72 43 6f 72 65 | 44 65 73 74 72 6f 79 65 |owerCore|Destroye|
|00004d60| 64 22 29 3b 0d 0a 20 20 | 20 20 48 65 61 6c 74 68 |d");.. | Health|
|00004d70| 20 3d 20 30 3b 0d 0a 0d | 0a 20 20 20 20 69 66 20 | = 0;...|. if |
|00004d80| 28 4c 65 76 65 6c 2e 4e | 65 74 4d 6f 64 65 20 21 |(Level.N|etMode !|
|00004d90| 3d 20 4e 4d 5f 44 65 64 | 69 63 61 74 65 64 53 65 |= NM_Ded|icatedSe|
|00004da0| 72 76 65 72 29 0d 0a 20 | 20 20 20 7b 0d 0a 20 20 |rver).. | {.. |
|00004db0| 20 20 20 20 20 20 50 43 | 20 3d 20 4c 65 76 65 6c | PC| = Level|
|00004dc0| 2e 47 65 74 4c 6f 63 61 | 6c 50 6c 61 79 65 72 43 |.GetLoca|lPlayerC|
|00004dd0| 6f 6e 74 72 6f 6c 6c 65 | 72 28 29 3b 0d 0a 20 20 |ontrolle|r();.. |
|00004de0| 20 20 20 20 20 20 69 66 | 20 28 50 43 20 21 3d 20 | if| (PC != |
|00004df0| 4e 6f 6e 65 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |None).. | |
|00004e00| 20 20 20 50 43 2e 43 6c | 69 65 6e 74 50 6c 61 79 | PC.Cl|ientPlay|
|00004e10| 53 6f 75 6e 64 28 44 65 | 73 74 72 6f 79 65 64 53 |Sound(De|stroyedS|
|00004e20| 6f 75 6e 64 2c 20 46 61 | 6c 73 65 2c 20 32 2e 30 |ound, Fa|lse, 2.0|
|00004e30| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 65 6c 73 65 |);.. | else|
|00004e40| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 50 6c |.. | Pl|
|00004e50| 61 79 53 6f 75 6e 64 28 | 44 65 73 74 72 6f 79 65 |aySound(|Destroye|
|00004e60| 64 53 6f 75 6e 64 2c 20 | 53 4c 4f 54 5f 4d 69 73 |dSound, |SLOT_Mis|
|00004e70| 63 2c 20 35 2e 30 29 3b | 0d 0a 0d 0a 20 20 20 20 |c, 5.0);|.... |
|00004e80| 20 20 20 20 45 78 70 6c | 6f 73 69 6f 6e 45 66 66 | Expl|osionEff|
|00004e90| 65 63 74 20 3d 20 73 70 | 61 77 6e 28 63 6c 61 73 |ect = sp|awn(clas|
|00004ea0| 73 27 4f 4e 53 50 6f 77 | 65 72 43 6f 72 65 42 72 |s'ONSPow|erCoreBr|
|00004eb0| 65 61 63 68 45 66 66 65 | 63 74 27 2c 20 73 65 6c |eachEffe|ct', sel|
|00004ec0| 66 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 53 6b 69 |f);.. | Ski|
|00004ed0| 6e 73 2e 6c 65 6e 67 74 | 68 20 3d 20 30 3b 0d 0a |ns.lengt|h = 0;..|
|00004ee0| 20 20 20 20 7d 0d 0a 0d | 0a 20 20 20 20 69 66 20 | }...|. if |
|00004ef0| 28 52 6f 6c 65 20 3d 3d | 20 52 4f 4c 45 5f 41 75 |(Role ==| ROLE_Au|
|00004f00| 74 68 6f 72 69 74 79 29 | 0d 0a 20 20 20 20 7b 0d |thority)|.. {.|
|00004f10| 0a 20 20 20 20 20 20 20 | 20 4e 65 74 55 70 64 61 |. | NetUpda|
|00004f20| 74 65 54 69 6d 65 20 3d | 20 4c 65 76 65 6c 2e 54 |teTime =| Level.T|
|00004f30| 69 6d 65 53 65 63 6f 6e | 64 73 20 2d 20 31 3b 0d |imeSecon|ds - 1;.|
|00004f40| 0a 20 20 20 20 20 20 20 | 20 53 63 6f 72 65 72 73 |. | Scorers|
|00004f50| 2e 6c 65 6e 67 74 68 20 | 3d 20 30 3b 0d 0a 20 20 |.length |= 0;.. |
|00004f60| 20 20 20 20 20 20 55 70 | 64 61 74 65 43 6c 6f 73 | Up|dateClos|
|00004f70| 65 41 63 74 6f 72 73 28 | 29 3b 0d 0a 20 20 20 20 |eActors(|);.. |
|00004f80| 20 20 20 20 4f 6e 43 6f | 72 65 44 65 73 74 72 6f | OnCo|reDestro|
|00004f90| 79 65 64 28 44 65 66 65 | 6e 64 65 72 54 65 61 6d |yed(Defe|nderTeam|
|00004fa0| 49 6e 64 65 78 29 3b 0d | 0a 20 20 20 20 20 20 20 |Index);.|. |
|00004fb0| 20 4e 6f 74 69 66 79 55 | 70 64 61 74 65 4c 69 6e | NotifyU|pdateLin|
|00004fc0| 6b 73 28 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 44 |ks();.. | D|
|00004fd0| 65 66 65 6e 64 65 72 54 | 65 61 6d 49 6e 64 65 78 |efenderT|eamIndex|
|00004fe0| 20 3d 20 32 3b 0d 0a 20 | 20 20 20 20 20 20 20 47 | = 2;.. | G|
|00004ff0| 6f 74 6f 53 74 61 74 65 | 28 27 44 65 73 74 72 6f |otoState|('Destro|
|00005000| 79 65 64 43 6f 72 65 27 | 29 3b 0d 0a 20 20 20 20 |yedCore'|);.. |
|00005010| 7d 0d 0a 0d 0a 09 55 70 | 64 61 74 65 4c 69 6e 6b |}.....Up|dateLink|
|00005020| 53 74 61 74 65 28 53 65 | 6c 66 29 3b 0d 0a 7d 0d |State(Se|lf);..}.|
|00005030| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 55 70 64 61 |...funct|ion Upda|
|00005040| 74 65 43 6c 6f 73 65 41 | 63 74 6f 72 73 28 29 0d |teCloseA|ctors().|
|00005050| 0a 7b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 69 6e |.{.. |local in|
|00005060| 74 20 69 3b 0d 0a 20 20 | 20 20 6c 6f 63 61 6c 20 |t i;.. | local |
|00005070| 41 63 74 6f 72 20 41 3b | 0d 0a 20 20 20 20 6c 6f |Actor A;|.. lo|
|00005080| 63 61 6c 20 4f 4e 53 56 | 65 68 69 63 6c 65 20 56 |cal ONSV|ehicle V|
|00005090| 3b 0d 0a 0d 0a 20 20 20 | 20 66 6f 72 20 28 69 20 |;.... | for (i |
|000050a0| 3d 20 30 3b 20 69 20 3c | 20 43 6c 6f 73 65 41 63 |= 0; i <| CloseAc|
|000050b0| 74 6f 72 73 2e 4c 65 6e | 67 74 68 3b 20 69 2b 2b |tors.Len|gth; i++|
|000050c0| 29 0d 0a 20 20 20 20 7b | 0d 0a 20 20 20 20 20 20 |).. {|.. |
|000050d0| 20 20 41 20 3d 20 43 6c | 6f 73 65 41 63 74 6f 72 | A = Cl|oseActor|
|000050e0| 73 5b 69 5d 3b 0d 0a 20 | 20 20 20 20 20 20 20 2f |s[i];.. | /|
|000050f0| 2f 20 44 69 73 61 62 6c | 65 20 61 6e 79 20 70 6c |/ Disabl|e any pl|
|00005100| 61 79 65 72 73 74 61 72 | 74 73 20 69 6e 20 74 68 |ayerstar|ts in th|
|00005110| 65 20 70 6f 77 65 72 20 | 72 61 64 69 75 73 0d 0a |e power |radius..|
|00005120| 20 20 20 20 20 20 20 20 | 69 66 20 28 41 2e 49 73 | |if (A.Is|
|00005130| 41 28 27 50 6c 61 79 65 | 72 53 74 61 72 74 27 29 |A('Playe|rStart')|
|00005140| 29 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 50 |).. | P|
|00005150| 6c 61 79 65 72 53 74 61 | 72 74 28 41 29 2e 62 45 |layerSta|rt(A).bE|
|00005160| 6e 61 62 6c 65 64 20 3d | 20 46 61 6c 73 65 3b 0d |nabled =| False;.|
|00005170| 0a 0d 0a 20 20 20 20 20 | 20 20 20 2f 2f 20 44 69 |... | // Di|
|00005180| 73 61 62 6c 65 20 61 6e | 79 20 76 65 68 69 63 6c |sable an|y vehicl|
|00005190| 65 20 66 61 63 74 6f 72 | 69 65 73 20 69 6e 20 74 |e factor|ies in t|
|000051a0| 68 65 20 70 6f 77 65 72 | 20 72 61 64 69 75 73 0d |he power| radius.|
|000051b0| 0a 20 20 20 20 20 20 20 | 20 69 66 20 28 41 2e 49 |. | if (A.I|
|000051c0| 73 41 28 27 4f 4e 53 56 | 65 68 69 63 6c 65 46 61 |sA('ONSV|ehicleFa|
|000051d0| 63 74 6f 72 79 27 29 29 | 0d 0a 20 20 20 20 20 20 |ctory'))|.. |
|000051e0| 20 20 20 20 20 20 4f 4e | 53 56 65 68 69 63 6c 65 | ON|SVehicle|
|000051f0| 46 61 63 74 6f 72 79 28 | 41 29 2e 44 65 61 63 74 |Factory(|A).Deact|
|00005200| 69 76 61 74 65 28 29 3b | 0d 0a 0d 0a 20 20 20 20 |ivate();|.... |
|00005210| 20 20 20 20 2f 2f 20 44 | 69 73 61 62 6c 65 20 61 | // D|isable a|
|00005220| 6e 79 20 74 75 72 72 65 | 74 73 20 69 6e 20 74 68 |ny turre|ts in th|
|00005230| 65 20 70 6f 77 65 72 20 | 72 61 64 69 75 73 0d 0a |e power |radius..|
|00005240| 20 20 20 20 20 20 20 20 | 69 66 20 28 41 2e 49 73 | |if (A.Is|
|00005250| 41 28 27 4f 4e 53 53 74 | 61 74 69 6f 6e 61 72 79 |A('ONSSt|ationary|
|00005260| 57 65 61 70 6f 6e 50 61 | 77 6e 27 29 20 26 26 20 |WeaponPa|wn') && |
|00005270| 21 62 46 69 6e 61 6c 43 | 6f 72 65 29 0d 0a 20 20 |!bFinalC|ore).. |
|00005280| 20 20 20 20 20 20 7b 0d | 0a 20 20 20 20 20 20 20 | {.|. |
|00005290| 20 20 20 20 20 4f 4e 53 | 53 74 61 74 69 6f 6e 61 | ONS|Stationa|
|000052a0| 72 79 57 65 61 70 6f 6e | 50 61 77 6e 28 41 29 2e |ryWeapon|Pawn(A).|
|000052b0| 62 50 6f 77 65 72 65 64 | 20 3d 20 46 61 6c 73 65 |bPowered| = False|
|000052c0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 4f |;.. | O|
|000052d0| 4e 53 53 74 61 74 69 6f | 6e 61 72 79 57 65 61 70 |NSStatio|naryWeap|
|000052e0| 6f 6e 50 61 77 6e 28 41 | 29 2e 4b 44 72 69 76 65 |onPawn(A|).KDrive|
|000052f0| 72 4c 65 61 76 65 28 54 | 72 75 65 29 3b 0d 0a 20 |rLeave(T|rue);.. |
|00005300| 20 20 20 20 20 20 20 20 | 20 20 20 4f 4e 53 53 74 | | ONSSt|
|00005310| 61 74 69 6f 6e 61 72 79 | 57 65 61 70 6f 6e 50 61 |ationary|WeaponPa|
|00005320| 77 6e 28 41 29 2e 54 65 | 61 6d 20 3d 20 32 35 35 |wn(A).Te|am = 255|
|00005330| 3b 0d 0a 20 20 20 20 20 | 20 20 20 7d 0d 0a 20 20 |;.. | }.. |
|00005340| 20 20 7d 0d 0a 20 20 20 | 20 66 6f 72 65 61 63 68 | }.. | foreach|
|00005350| 20 44 79 6e 61 6d 69 63 | 41 63 74 6f 72 73 28 63 | Dynamic|Actors(c|
|00005360| 6c 61 73 73 27 4f 4e 53 | 56 65 68 69 63 6c 65 27 |lass'ONS|Vehicle'|
|00005370| 2c 20 56 29 0d 0a 20 20 | 20 20 20 20 20 20 69 66 |, V).. | if|
|00005380| 20 28 56 2e 62 54 65 61 | 6d 4c 6f 63 6b 65 64 20 | (V.bTea|mLocked |
|00005390| 26 26 20 56 2e 48 65 61 | 6c 74 68 20 3e 20 30 20 |&& V.Hea|lth > 0 |
|000053a0| 26 26 20 43 6c 6f 73 65 | 73 74 54 6f 28 56 29 20 |&& Close|stTo(V) |
|000053b0| 3d 3d 20 73 65 6c 66 29 | 0d 0a 20 20 20 20 20 20 |== self)|.. |
|000053c0| 20 20 20 20 20 20 56 2e | 44 65 73 74 72 6f 79 28 | V.|Destroy(|
|000053d0| 29 3b 0d 0a 7d 0d 0a 0d | 0a 2f 2f 20 52 65 74 75 |);..}...|.// Retu|
|000053e0| 72 6e 73 20 61 20 72 61 | 74 69 6e 67 20 62 61 73 |rns a ra|ting bas|
|000053f0| 65 64 20 6f 6e 20 6e 65 | 61 72 62 79 20 76 65 68 |ed on ne|arby veh|
|00005400| 69 63 6c 65 73 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |icles..f|unction |
|00005410| 66 6c 6f 61 74 20 52 61 | 74 65 43 6f 72 65 28 29 |float Ra|teCore()|
|00005420| 0d 0a 7b 0d 0a 20 20 20 | 20 6c 6f 63 61 6c 20 69 |..{.. | local i|
|00005430| 6e 74 20 69 3b 0d 0a 09 | 6c 6f 63 61 6c 20 66 6c |nt i;...|local fl|
|00005440| 6f 61 74 20 52 65 73 75 | 6c 74 3b 0d 0a 0d 0a 20 |oat Resu|lt;.... |
|00005450| 20 20 20 66 6f 72 20 28 | 69 20 3d 20 30 3b 20 69 | for (|i = 0; i|
|00005460| 20 3c 20 43 6c 6f 73 65 | 41 63 74 6f 72 73 2e 4c | < Close|Actors.L|
|00005470| 65 6e 67 74 68 3b 20 69 | 2b 2b 29 0d 0a 20 20 20 |ength; i|++).. |
|00005480| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 69 66 20 28 | {.. | if (|
|00005490| 20 4f 4e 53 56 65 68 69 | 63 6c 65 46 61 63 74 6f | ONSVehi|cleFacto|
|000054a0| 72 79 28 43 6c 6f 73 65 | 41 63 74 6f 72 73 5b 69 |ry(Close|Actors[i|
|000054b0| 5d 29 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |]) != No|ne )....|
|000054c0| 7b 0d 0a 09 09 09 52 65 | 73 75 6c 74 20 2b 3d 20 |{.....Re|sult += |
|000054d0| 28 4f 4e 53 56 65 68 69 | 63 6c 65 46 61 63 74 6f |(ONSVehi|cleFacto|
|000054e0| 72 79 28 43 6c 6f 73 65 | 41 63 74 6f 72 73 5b 69 |ry(Close|Actors[i|
|000054f0| 5d 29 2e 56 65 68 69 63 | 6c 65 43 6c 61 73 73 2e |]).Vehic|leClass.|
|00005500| 44 65 66 61 75 6c 74 2e | 4d 61 78 44 65 73 69 72 |Default.|MaxDesir|
|00005510| 65 61 62 69 6c 69 74 79 | 20 2a 20 4f 4e 53 56 65 |eability| * ONSVe|
|00005520| 68 69 63 6c 65 46 61 63 | 74 6f 72 79 28 43 6c 6f |hicleFac|tory(Clo|
|00005530| 73 65 41 63 74 6f 72 73 | 5b 69 5d 29 2e 56 65 68 |seActors|[i]).Veh|
|00005540| 69 63 6c 65 43 6c 61 73 | 73 2e 44 65 66 61 75 6c |icleClas|s.Defaul|
|00005550| 74 2e 4d 61 78 44 65 73 | 69 72 65 61 62 69 6c 69 |t.MaxDes|ireabili|
|00005560| 74 79 29 3b 0d 0a 09 09 | 09 69 66 20 28 20 4f 4e |ty);....|.if ( ON|
|00005570| 53 56 65 68 69 63 6c 65 | 46 61 63 74 6f 72 79 28 |SVehicle|Factory(|
|00005580| 43 6c 6f 73 65 41 63 74 | 6f 72 73 5b 69 5d 29 2e |CloseAct|ors[i]).|
|00005590| 56 65 68 69 63 6c 65 43 | 6c 61 73 73 2e 44 65 66 |VehicleC|lass.Def|
|000055a0| 61 75 6c 74 2e 4d 61 78 | 44 65 73 69 72 65 61 62 |ault.Max|Desireab|
|000055b0| 69 6c 69 74 79 20 3e 20 | 30 2e 36 20 29 0d 0a 09 |ility > |0.6 )...|
|000055c0| 09 09 09 52 65 73 75 6c | 74 20 2b 3d 20 30 2e 35 |...Resul|t += 0.5|
|000055d0| 3b 0d 0a 09 09 7d 0d 0a | 09 7d 0d 0a 09 72 65 74 |;....}..|.}...ret|
|000055e0| 75 72 6e 20 52 65 73 75 | 6c 74 3b 0d 0a 7d 0d 0a |urn Resu|lt;..}..|
|000055f0| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 66 75 6e 63 |..simula|ted func|
|00005600| 74 69 6f 6e 20 50 6f 77 | 65 72 43 6f 72 65 43 6f |tion Pow|erCoreCo|
|00005610| 6e 73 74 72 75 63 74 69 | 6e 67 28 29 0d 0a 7b 0d |nstructi|ng()..{.|
|00005620| 0a 2f 2f 09 6c 6f 67 28 | 4e 61 6d 65 40 22 50 6f |.//.log(|Name@"Po|
|00005630| 77 65 72 43 6f 72 65 43 | 6f 6e 73 74 72 75 63 74 |werCoreC|onstruct|
|00005640| 69 6e 67 22 29 3b 0d 0a | 20 20 20 20 41 6d 62 69 |ing");..| Ambi|
|00005650| 65 6e 74 53 6f 75 6e 64 | 20 3d 20 48 65 61 6c 69 |entSound| = Heali|
|00005660| 6e 67 53 6f 75 6e 64 3b | 0d 0a 20 20 20 20 69 66 |ngSound;|.. if|
|00005670| 20 28 4c 65 76 65 6c 2e | 4e 65 74 4d 6f 64 65 20 | (Level.|NetMode |
|00005680| 21 3d 20 4e 4d 5f 44 65 | 64 69 63 61 74 65 64 53 |!= NM_De|dicatedS|
|00005690| 65 72 76 65 72 29 0d 0a | 20 20 20 20 7b 0d 0a 20 |erver)..| {.. |
|000056a0| 20 20 20 20 20 20 20 69 | 66 20 28 44 65 66 65 6e | i|f (Defen|
|000056b0| 64 65 72 54 65 61 6d 49 | 6e 64 65 78 20 3d 3d 20 |derTeamI|ndex == |
|000056c0| 30 29 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |0).. | |
|000056d0| 53 6b 69 6e 73 20 3d 20 | 52 65 64 43 6f 6e 73 74 |Skins = |RedConst|
|000056e0| 72 75 63 74 69 6e 67 53 | 6b 69 6e 73 3b 0d 0a 20 |ructingS|kins;.. |
|000056f0| 20 20 20 20 20 20 20 65 | 6c 73 65 0d 0a 20 20 20 | e|lse.. |
|00005700| 20 20 20 20 20 20 20 20 | 20 53 6b 69 6e 73 20 3d | | Skins =|
|00005710| 20 42 6c 75 65 43 6f 6e | 73 74 72 75 63 74 69 6e | BlueCon|structin|
|00005720| 67 53 6b 69 6e 73 3b 0d | 0a 0d 0a 20 20 20 20 09 |gSkins;.|... .|
|00005730| 2f 2f 20 55 70 64 61 74 | 65 20 73 68 69 65 6c 64 |// Updat|e shield|
|00005740| 0d 0a 20 20 20 20 20 20 | 20 09 53 68 69 65 6c 64 |.. | .Shield|
|00005750| 2e 53 65 74 54 65 61 6d | 28 44 65 66 65 6e 64 65 |.SetTeam|(Defende|
|00005760| 72 54 65 61 6d 49 6e 64 | 65 78 29 3b 0d 0a 0d 0a |rTeamInd|ex);....|
|00005770| 20 20 20 20 20 20 20 20 | 55 70 64 61 74 65 54 65 | |UpdateTe|
|00005780| 61 6d 42 61 6e 6e 65 72 | 73 28 29 3b 0d 0a 20 20 |amBanner|s();.. |
|00005790| 20 20 7d 0d 0a 20 20 20 | 20 62 48 69 64 64 65 6e | }.. | bHidden|
|000057a0| 20 3d 20 46 61 6c 73 65 | 3b 0d 0a 0d 0a 20 20 20 | = False|;.... |
|000057b0| 20 2f 2f 20 55 70 64 61 | 74 65 20 4c 69 6e 6b 73 | // Upda|te Links|
|000057c0| 0d 0a 20 20 20 20 4e 6f | 74 69 66 79 55 70 64 61 |.. No|tifyUpda|
|000057d0| 74 65 4c 69 6e 6b 73 28 | 29 3b 0d 0a 09 55 70 64 |teLinks(|);...Upd|
|000057e0| 61 74 65 4c 69 6e 6b 53 | 74 61 74 65 28 53 65 6c |ateLinkS|tate(Sel|
|000057f0| 66 29 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |f);..}..|..simula|
|00005800| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 50 6f 77 |ted func|tion Pow|
|00005810| 65 72 43 6f 72 65 41 63 | 74 69 76 65 28 29 0d 0a |erCoreAc|tive()..|
|00005820| 7b 0d 0a 20 20 20 20 6c | 6f 63 61 6c 20 41 63 74 |{.. l|ocal Act|
|00005830| 6f 72 20 41 3b 0d 0a 20 | 20 20 20 6c 6f 63 61 6c |or A;.. | local|
|00005840| 20 69 6e 74 20 69 3b 0d | 0a 0d 0a 20 20 20 20 62 | int i;.|... b|
|00005850| 48 69 64 64 65 6e 20 3d | 20 46 61 6c 73 65 3b 0d |Hidden =| False;.|
|00005860| 0a 20 20 20 20 41 6d 62 | 69 65 6e 74 53 6f 75 6e |. Amb|ientSoun|
|00005870| 64 20 3d 20 41 63 74 69 | 76 65 53 6f 75 6e 64 3b |d = Acti|veSound;|
|00005880| 0d 0a 0d 0a 09 2f 2f 6c | 6f 67 28 4e 61 6d 65 40 |.....//l|og(Name@|
|00005890| 22 50 6f 77 65 72 43 6f | 72 65 41 63 74 69 76 65 |"PowerCo|reActive|
|000058a0| 22 29 3b 0d 0a 20 20 20 | 20 2f 2f 20 55 70 64 61 |");.. | // Upda|
|000058b0| 74 65 20 56 69 73 75 61 | 6c 73 0d 0a 20 20 20 20 |te Visua|ls.. |
|000058c0| 69 66 20 28 4c 65 76 65 | 6c 2e 4e 65 74 4d 6f 64 |if (Leve|l.NetMod|
|000058d0| 65 20 21 3d 20 4e 4d 5f | 44 65 64 69 63 61 74 65 |e != NM_|Dedicate|
|000058e0| 64 53 65 72 76 65 72 29 | 0d 0a 20 20 20 20 7b 0d |dServer)|.. {.|
|000058f0| 0a 20 20 20 20 20 20 20 | 20 69 66 20 28 52 6f 61 |. | if (Roa|
|00005900| 6d 69 6e 67 45 6e 65 72 | 67 79 20 21 3d 20 4e 6f |mingEner|gy != No|
|00005910| 6e 65 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ne).. | |
|00005920| 20 52 6f 61 6d 69 6e 67 | 45 6e 65 72 67 79 2e 44 | Roaming|Energy.D|
|00005930| 65 73 74 72 6f 79 28 29 | 3b 0d 0a 0d 0a 20 20 20 |estroy()|;.... |
|00005940| 20 20 20 20 20 69 66 20 | 28 45 78 70 6c 6f 73 69 | if |(Explosi|
|00005950| 6f 6e 45 66 66 65 63 74 | 20 21 3d 20 4e 6f 6e 65 |onEffect| != None|
|00005960| 29 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 45 |).. | E|
|00005970| 78 70 6c 6f 73 69 6f 6e | 45 66 66 65 63 74 2e 44 |xplosion|Effect.D|
|00005980| 65 73 74 72 6f 79 28 29 | 3b 0d 0a 0d 0a 20 20 20 |estroy()|;.... |
|00005990| 20 20 20 20 20 69 66 20 | 28 44 65 66 65 6e 64 65 | if |(Defende|
|000059a0| 72 54 65 61 6d 49 6e 64 | 65 78 20 3d 3d 20 30 29 |rTeamInd|ex == 0)|
|000059b0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 53 6b |.. | Sk|
|000059c0| 69 6e 73 20 3d 20 52 65 | 64 41 63 74 69 76 65 53 |ins = Re|dActiveS|
|000059d0| 6b 69 6e 73 3b 0d 0a 20 | 20 20 20 20 20 20 20 65 |kins;.. | e|
|000059e0| 6c 73 65 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |lse.. | |
|000059f0| 20 53 6b 69 6e 73 20 3d | 20 42 6c 75 65 41 63 74 | Skins =| BlueAct|
|00005a00| 69 76 65 53 6b 69 6e 73 | 3b 0d 0a 0d 0a 20 20 20 |iveSkins|;.... |
|00005a10| 20 09 2f 2f 20 55 70 64 | 61 74 65 20 73 68 69 65 | .// Upd|ate shie|
|00005a20| 6c 64 0d 0a 20 20 20 20 | 09 69 66 20 28 53 68 69 |ld.. |.if (Shi|
|00005a30| 65 6c 64 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 20 |eld != N|one)... |
|00005a40| 20 20 20 20 20 20 20 53 | 68 69 65 6c 64 2e 53 65 | S|hield.Se|
|00005a50| 74 54 65 61 6d 28 44 65 | 66 65 6e 64 65 72 54 65 |tTeam(De|fenderTe|
|00005a60| 61 6d 49 6e 64 65 78 29 | 3b 0d 0a 0d 0a 20 20 20 |amIndex)|;.... |
|00005a70| 20 20 20 20 20 55 70 64 | 61 74 65 54 65 61 6d 42 | Upd|ateTeamB|
|00005a80| 61 6e 6e 65 72 73 28 29 | 3b 0d 0a 0d 0a 09 09 50 |anners()|;......P|
|00005a90| 6c 61 79 53 6f 75 6e 64 | 28 43 6f 6e 73 74 72 75 |laySound|(Constru|
|00005aa0| 63 74 65 64 53 6f 75 6e | 64 2c 20 53 4c 4f 54 5f |ctedSoun|d, SLOT_|
|00005ab0| 4d 69 73 63 2c 20 35 2e | 30 29 3b 0d 0a 20 20 20 |Misc, 5.|0);.. |
|00005ac0| 20 7d 0d 0a 0d 0a 20 20 | 20 20 69 66 20 28 52 6f | }.... | if (Ro|
|00005ad0| 6c 65 20 3d 3d 20 52 4f | 4c 45 5f 41 75 74 68 6f |le == RO|LE_Autho|
|00005ae0| 72 69 74 79 29 0d 0a 20 | 20 20 20 7b 0d 0a 09 20 |rity).. | {... |
|00005af0| 20 20 20 4e 6f 74 69 66 | 79 55 70 64 61 74 65 4c | Notif|yUpdateL|
|00005b00| 69 6e 6b 73 28 29 3b 0d | 0a 09 20 20 20 20 53 63 |inks();.|.. Sc|
|00005b10| 6f 72 65 72 73 2e 6c 65 | 6e 67 74 68 20 3d 20 30 |orers.le|ngth = 0|
|00005b20| 3b 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 2f 2f 20 |;.... | // |
|00005b30| 55 70 64 61 74 65 20 4e | 65 61 72 62 79 20 50 6f |Update N|earby Po|
|00005b40| 77 65 72 65 64 20 41 63 | 74 6f 72 73 0d 0a 20 20 |wered Ac|tors.. |
|00005b50| 20 20 20 20 20 20 66 6f | 72 20 28 69 20 3d 20 30 | fo|r (i = 0|
|00005b60| 3b 20 69 20 3c 20 43 6c | 6f 73 65 41 63 74 6f 72 |; i < Cl|oseActor|
|00005b70| 73 2e 4c 65 6e 67 74 68 | 3b 20 69 2b 2b 29 0d 0a |s.Length|; i++)..|
|00005b80| 20 20 20 20 20 20 20 20 | 7b 0d 0a 20 20 20 20 20 | |{.. |
|00005b90| 20 20 20 20 20 20 20 41 | 20 3d 20 43 6c 6f 73 65 | A| = Close|
|00005ba0| 41 63 74 6f 72 73 5b 69 | 5d 3b 0d 0a 0d 0a 20 20 |Actors[i|];.... |
|00005bb0| 20 20 20 20 20 20 20 20 | 20 20 2f 2f 20 55 70 64 | | // Upd|
|00005bc0| 61 74 65 20 61 6e 79 20 | 76 65 68 69 63 6c 65 20 |ate any |vehicle |
|00005bd0| 66 61 63 74 6f 72 69 65 | 73 20 69 6e 20 74 68 65 |factorie|s in the|
|00005be0| 20 70 6f 77 65 72 20 72 | 61 64 69 75 73 20 74 6f | power r|adius to|
|00005bf0| 20 62 65 20 6f 77 6e 65 | 64 20 62 79 20 74 68 65 | be owne|d by the|
|00005c00| 20 63 6f 6e 74 72 6f 6c | 6c 69 6e 67 20 74 65 61 | control|ling tea|
|00005c10| 6d 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |m.. | i|
|00005c20| 66 20 28 41 2e 49 73 41 | 28 27 4f 4e 53 56 65 68 |f (A.IsA|('ONSVeh|
|00005c30| 69 63 6c 65 46 61 63 74 | 6f 72 79 27 29 29 0d 0a |icleFact|ory'))..|
|00005c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c50| 4f 4e 53 56 65 68 69 63 | 6c 65 46 61 63 74 6f 72 |ONSVehic|leFactor|
|00005c60| 79 28 41 29 2e 41 63 74 | 69 76 61 74 65 28 44 65 |y(A).Act|ivate(De|
|00005c70| 66 65 6e 64 65 72 54 65 | 61 6d 49 6e 64 65 78 29 |fenderTe|amIndex)|
|00005c80| 3b 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |;.... | |
|00005c90| 20 2f 2f 20 55 70 64 61 | 74 65 20 61 6e 79 20 70 | // Upda|te any p|
|00005ca0| 6c 61 79 65 72 73 74 61 | 72 74 73 20 69 6e 20 74 |layersta|rts in t|
|00005cb0| 68 65 20 70 6f 77 65 72 | 20 72 61 64 69 75 73 20 |he power| radius |
|00005cc0| 74 6f 20 74 68 65 20 62 | 65 20 6f 77 6e 65 64 20 |to the b|e owned |
|00005cd0| 62 79 20 74 68 65 20 63 | 6f 6e 74 72 6f 6c 6c 69 |by the c|ontrolli|
|00005ce0| 6e 67 20 74 65 61 6d 0d | 0a 20 20 20 20 20 20 20 |ng team.|. |
|00005cf0| 20 20 20 20 20 69 66 20 | 28 41 2e 49 73 41 28 27 | if |(A.IsA('|
|00005d00| 50 6c 61 79 65 72 53 74 | 61 72 74 27 29 29 0d 0a |PlayerSt|art'))..|
|00005d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 7b 0d 0a 20 | | {.. |
|00005d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 50 | | P|
|00005d30| 6c 61 79 65 72 53 74 61 | 72 74 28 41 29 2e 54 65 |layerSta|rt(A).Te|
|00005d40| 61 6d 4e 75 6d 62 65 72 | 20 3d 20 44 65 66 65 6e |amNumber| = Defen|
|00005d50| 64 65 72 54 65 61 6d 49 | 6e 64 65 78 3b 0d 0a 20 |derTeamI|ndex;.. |
|00005d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 50 | | P|
|00005d70| 6c 61 79 65 72 53 74 61 | 72 74 28 41 29 2e 62 45 |layerSta|rt(A).bE|
|00005d80| 6e 61 62 6c 65 64 20 3d | 20 54 72 75 65 3b 0d 0a |nabled =| True;..|
|00005d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0d 0a 0d | | }...|
|00005da0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2f 20 |. | // |
|00005db0| 45 6e 61 62 6c 65 20 61 | 6e 79 20 74 75 72 72 65 |Enable a|ny turre|
|00005dc0| 74 73 20 69 6e 20 74 68 | 65 20 70 6f 77 65 72 20 |ts in th|e power |
|00005dd0| 72 61 64 69 75 73 0d 0a | 20 20 20 20 20 20 20 20 |radius..| |
|00005de0| 20 20 20 20 49 66 20 28 | 41 2e 49 73 41 28 27 4f | If (|A.IsA('O|
|00005df0| 4e 53 53 74 61 74 69 6f | 6e 61 72 79 57 65 61 70 |NSStatio|naryWeap|
|00005e00| 6f 6e 50 61 77 6e 27 29 | 29 0d 0a 20 20 20 20 20 |onPawn')|).. |
|00005e10| 20 20 20 20 20 20 20 7b | 0d 0a 20 20 20 20 20 20 | {|.. |
|00005e20| 20 20 20 20 20 20 20 20 | 20 20 4f 4e 53 53 74 61 | | ONSSta|
|00005e30| 74 69 6f 6e 61 72 79 57 | 65 61 70 6f 6e 50 61 77 |tionaryW|eaponPaw|
|00005e40| 6e 28 41 29 2e 62 50 6f | 77 65 72 65 64 20 3d 20 |n(A).bPo|wered = |
|00005e50| 54 72 75 65 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |True;.. | |
|00005e60| 20 20 20 20 20 20 20 4f | 4e 53 53 74 61 74 69 6f | O|NSStatio|
|00005e70| 6e 61 72 79 57 65 61 70 | 6f 6e 50 61 77 6e 28 41 |naryWeap|onPawn(A|
|00005e80| 29 2e 53 65 74 54 65 61 | 6d 4e 75 6d 28 44 65 66 |).SetTea|mNum(Def|
|00005e90| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 29 3b |enderTea|mIndex);|
|00005ea0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00005eb0| 20 20 4f 4e 53 53 74 61 | 74 69 6f 6e 61 72 79 57 | ONSSta|tionaryW|
|00005ec0| 65 61 70 6f 6e 50 61 77 | 6e 28 41 29 2e 50 72 65 |eaponPaw|n(A).Pre|
|00005ed0| 76 54 65 61 6d 20 3d 20 | 44 65 66 65 6e 64 65 72 |vTeam = |Defender|
|00005ee0| 54 65 61 6d 49 6e 64 65 | 78 3b 0d 0a 20 20 20 20 |TeamInde|x;.. |
|00005ef0| 20 20 20 20 20 20 20 20 | 7d 0d 0a 20 20 20 20 20 | |}.. |
|00005f00| 20 20 20 7d 0d 0a 20 20 | 20 20 7d 0d 0a 0d 0a 09 | }.. | }.....|
|00005f10| 55 70 64 61 74 65 4c 69 | 6e 6b 53 74 61 74 65 28 |UpdateLi|nkState(|
|00005f20| 53 65 6c 66 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |Self);..|}....fun|
|00005f30| 63 74 69 6f 6e 20 52 65 | 73 65 74 28 29 0d 0a 7b |ction Re|set()..{|
|00005f40| 0d 0a 09 48 65 61 6c 74 | 68 20 3d 20 44 61 6d 61 |...Healt|h = Dama|
|00005f50| 67 65 43 61 70 61 63 69 | 74 79 3b 0d 0a 09 50 6f |geCapaci|ty;...Po|
|00005f60| 77 65 72 43 6f 72 65 52 | 65 73 65 74 28 29 3b 0d |werCoreR|eset();.|
|00005f70| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00005f80| 66 75 6e 63 74 69 6f 6e | 20 50 6f 77 65 72 43 6f |function| PowerCo|
|00005f90| 72 65 52 65 73 65 74 28 | 29 0d 0a 7b 0d 0a 2f 2f |reReset(|)..{..//|
|00005fa0| 09 6c 6f 67 28 4e 61 6d | 65 40 22 50 6f 77 65 72 |.log(Nam|e@"Power|
|00005fb0| 43 6f 72 65 52 65 73 65 | 74 22 29 3b 0d 0a 09 69 |CoreRese|t");...i|
|00005fc0| 66 20 28 52 6f 61 6d 69 | 6e 67 45 6e 65 72 67 79 |f (Roami|ngEnergy|
|00005fd0| 20 21 3d 20 4e 6f 6e 65 | 20 26 26 20 62 53 63 72 | != None| && bScr|
|00005fe0| 69 70 74 49 6e 69 74 69 | 61 6c 69 7a 65 64 29 0d |iptIniti|alized).|
|00005ff0| 0a 09 09 52 6f 61 6d 69 | 6e 67 45 6e 65 72 67 79 |...Roami|ngEnergy|
|00006000| 2e 44 65 73 74 72 6f 79 | 28 29 3b 0d 0a 0d 0a 09 |.Destroy|();.....|
|00006010| 69 66 20 28 52 6f 6c 65 | 20 3d 3d 20 52 4f 4c 45 |if (Role| == ROLE|
|00006020| 5f 41 75 74 68 6f 72 69 | 74 79 29 0d 0a 09 7b 0d |_Authori|ty)...{.|
|00006030| 0a 09 09 53 65 74 53 74 | 61 74 69 63 4d 65 73 68 |...SetSt|aticMesh|
|00006040| 28 64 65 66 61 75 6c 74 | 2e 53 74 61 74 69 63 4d |(default|.StaticM|
|00006050| 65 73 68 29 3b 0d 0a 09 | 09 55 70 64 61 74 65 43 |esh);...|.UpdateC|
|00006060| 6c 6f 73 65 41 63 74 6f | 72 73 28 29 3b 0d 0a 09 |loseActo|rs();...|
|00006070| 09 4e 65 74 55 70 64 61 | 74 65 54 69 6d 65 20 3d |.NetUpda|teTime =|
|00006080| 20 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e | Level.T|imeSecon|
|00006090| 64 73 20 2d 20 31 3b 0d | 0a 09 09 69 66 20 28 21 |ds - 1;.|...if (!|
|000060a0| 62 46 69 6e 61 6c 43 6f | 72 65 29 0d 0a 20 20 20 |bFinalCo|re).. |
|000060b0| 20 20 20 20 20 20 20 20 | 20 44 65 66 65 6e 64 65 | | Defende|
|000060c0| 72 54 65 61 6d 49 6e 64 | 65 78 20 3d 20 64 65 66 |rTeamInd|ex = def|
|000060d0| 61 75 6c 74 2e 44 65 66 | 65 6e 64 65 72 54 65 61 |ault.Def|enderTea|
|000060e0| 6d 49 6e 64 65 78 3b 0d | 0a 0d 0a 09 09 69 66 20 |mIndex;.|.....if |
|000060f0| 28 20 62 53 63 72 69 70 | 74 49 6e 69 74 69 61 6c |( bScrip|tInitial|
|00006100| 69 7a 65 64 20 29 0d 0a | 09 09 09 53 65 74 49 6e |ized )..|...SetIn|
|00006110| 69 74 69 61 6c 53 74 61 | 74 65 28 29 3b 0d 0a 09 |itialSta|te();...|
|00006120| 7d 0d 0a 0d 0a 09 55 70 | 64 61 74 65 4c 69 6e 6b |}.....Up|dateLink|
|00006130| 53 74 61 74 65 28 53 65 | 6c 66 29 3b 0d 0a 7d 0d |State(Se|lf);..}.|
|00006140| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|00006150| 63 74 69 6f 6e 20 55 70 | 64 61 74 65 54 65 61 6d |ction Up|dateTeam|
|00006160| 42 61 6e 6e 65 72 73 28 | 29 0d 0a 7b 0d 0a 09 6c |Banners(|)..{...l|
|00006170| 6f 63 61 6c 20 69 6e 74 | 20 69 3b 0d 0a 0d 0a 09 |ocal int| i;.....|
|00006180| 66 6f 72 20 28 69 20 3d | 20 30 3b 20 69 20 3c 20 |for (i =| 0; i < |
|00006190| 43 6c 6f 73 65 41 63 74 | 6f 72 73 2e 6c 65 6e 67 |CloseAct|ors.leng|
|000061a0| 74 68 3b 20 69 2b 2b 29 | 0d 0a 20 20 20 20 20 20 |th; i++)|.. |
|000061b0| 20 20 09 69 66 20 28 78 | 54 65 61 6d 42 61 6e 6e | .if (x|TeamBann|
|000061c0| 65 72 28 43 6c 6f 73 65 | 41 63 74 6f 72 73 5b 69 |er(Close|Actors[i|
|000061d0| 5d 29 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 20 20 20 |]) != No|ne).. |
|000061e0| 20 20 20 20 20 09 7b 0d | 0a 20 20 20 20 20 20 20 | .{.|. |
|000061f0| 20 09 09 69 66 20 28 43 | 6f 72 65 53 74 61 67 65 | ..if (C|oreStage|
|00006200| 20 3d 3d 20 30 29 0d 0a | 09 20 20 20 20 20 20 20 | == 0)..|. |
|00006210| 20 09 09 78 54 65 61 6d | 42 61 6e 6e 65 72 28 43 | ..xTeam|Banner(C|
|00006220| 6c 6f 73 65 41 63 74 6f | 72 73 5b 69 5d 29 2e 54 |loseActo|rs[i]).T|
|00006230| 65 61 6d 20 3d 20 44 65 | 66 65 6e 64 65 72 54 65 |eam = De|fenderTe|
|00006240| 61 6d 49 6e 64 65 78 3b | 0d 0a 09 20 20 20 20 20 |amIndex;|... |
|00006250| 20 20 20 09 65 6c 73 65 | 0d 0a 09 20 20 20 20 20 | .else|... |
|00006260| 20 20 20 09 09 78 54 65 | 61 6d 42 61 6e 6e 65 72 | ..xTe|amBanner|
|00006270| 28 43 6c 6f 73 65 41 63 | 74 6f 72 73 5b 69 5d 29 |(CloseAc|tors[i])|
|00006280| 2e 54 65 61 6d 20 3d 20 | 32 35 35 3b 0d 0a 20 20 |.Team = |255;.. |
|00006290| 20 20 20 20 20 20 09 09 | 78 54 65 61 6d 42 61 6e | ..|xTeamBan|
|000062a0| 6e 65 72 28 43 6c 6f 73 | 65 41 63 74 6f 72 73 5b |ner(Clos|eActors[|
|000062b0| 69 5d 29 2e 55 70 64 61 | 74 65 46 6f 72 54 65 61 |i]).Upda|teForTea|
|000062c0| 6d 28 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 09 7d |m();.. | .}|
|000062d0| 0d 0a 20 20 20 20 20 20 | 20 20 66 6f 72 20 28 69 |.. | for (i|
|000062e0| 20 3d 20 30 3b 20 69 20 | 3c 20 54 65 6c 65 70 6f | = 0; i |< Telepo|
|000062f0| 72 74 50 61 64 73 2e 6c | 65 6e 67 74 68 3b 20 69 |rtPads.l|ength; i|
|00006300| 2b 2b 29 0d 0a 09 7b 0d | 0a 20 20 20 20 20 20 20 |++)...{.|. |
|00006310| 20 09 69 66 20 28 43 6f | 72 65 53 74 61 67 65 20 | .if (Co|reStage |
|00006320| 3d 3d 20 30 29 0d 0a 20 | 20 20 20 20 20 20 20 09 |== 0).. | .|
|00006330| 09 54 65 6c 65 70 6f 72 | 74 50 61 64 73 5b 69 5d |.Telepor|tPads[i]|
|00006340| 2e 53 65 74 54 65 61 6d | 28 44 65 66 65 6e 64 65 |.SetTeam|(Defende|
|00006350| 72 54 65 61 6d 49 6e 64 | 65 78 29 3b 0d 0a 20 20 |rTeamInd|ex);.. |
|00006360| 20 20 20 20 20 20 09 65 | 6c 73 65 0d 0a 20 20 20 | .e|lse.. |
|00006370| 20 20 20 20 20 09 09 54 | 65 6c 65 70 6f 72 74 50 | ..T|eleportP|
|00006380| 61 64 73 5b 69 5d 2e 53 | 65 74 54 65 61 6d 28 32 |ads[i].S|etTeam(2|
|00006390| 35 35 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 7d 0d |55);.. | }.|
|000063a0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 66 |.}....fu|nction f|
|000063b0| 6c 6f 61 74 20 54 65 6c | 65 70 6f 72 74 52 61 74 |loat Tel|eportRat|
|000063c0| 69 6e 67 28 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 41 |ing(Cont|roller A|
|000063d0| 73 6b 65 72 2c 20 62 79 | 74 65 20 41 73 6b 65 72 |sker, by|te Asker|
|000063e0| 54 65 61 6d 2c 20 62 79 | 74 65 20 53 6f 75 72 63 |Team, by|te Sourc|
|000063f0| 65 44 69 73 74 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |eDist)..|{...loca|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.